X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..032bc940fcde34cc649eaa111cd6aff1cda66104:/src/generic/timer.cpp diff --git a/src/generic/timer.cpp b/src/generic/timer.cpp index bffbfa37c0..a2daf62003 100644 --- a/src/generic/timer.cpp +++ b/src/generic/timer.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: mgl/timer.cpp +// Name: src/generic/timer.cpp // Purpose: wxTimer implementation // Author: Vaclav Slavik // Id: $Id$ @@ -20,12 +20,14 @@ // is in wxEventLoop::Dispatch(). // ---------------------------------------------------------------------------- -#include "wx/timer.h" - #if wxUSE_TIMER -#include "wx/log.h" -#include "wx/module.h" +#include "wx/timer.h" + +#ifndef WX_PRECOMP + #include "wx/log.h" + #include "wx/module.h" +#endif // ---------------------------------------------------------------------------- // Time input function @@ -190,7 +192,11 @@ void wxTimerScheduler::NotifyTimers() QueueTimer(desc, now + desc->timer->GetInterval()); } else + { desc = m_timers; + if (!desc) + break; + } } } }