Fixed uninitialized variables in Fl_Timer. STR #2287

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6928 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2009-11-07 21:11:16 +00:00
parent 25e41cbc4c
commit 3c482f4efa
1 changed files with 1 additions and 0 deletions

View File

@ -137,6 +137,7 @@ Fl_Timer::Fl_Timer(uchar t, int X, int Y, int W, int H, const char* l)
delay = 0;
on = 0;
direction_ = 0;
lastsec = lastusec = total = 0;
type(t);
if (t == FL_HIDDEN_TIMER) clear_visible();
if (t == FL_VALUE_TIMER) align(FL_ALIGN_LEFT);