X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..718903fe6402bb374a801e43e856b02204401204:/src/common/timercmn.cpp?ds=sidebyside diff --git a/src/common/timercmn.cpp b/src/common/timercmn.cpp index ffcf0358a9..2b310c0599 100644 --- a/src/common/timercmn.cpp +++ b/src/common/timercmn.cpp @@ -57,6 +57,7 @@ void wxTimerBase::Notify() wxCHECK_RET( m_owner, _T("wxTimer::Notify() should be overridden.") ); wxTimerEvent event(m_idTimer, m_milli); + event.SetEventObject(this); (void)m_owner->ProcessEvent(event); } @@ -84,7 +85,7 @@ bool wxTimerBase::Start(int milliseconds, bool oneShot) m_oneShot = oneShot; - return TRUE; + return true; } #endif // wxUSE_TIMER