X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/46446cc2aa025f445815545b31552a509b5e3f7e..44fd6f721ad375033b2a2b64ac5f703ac70cb8f0:/src/common/timercmn.cpp diff --git a/src/common/timercmn.cpp b/src/common/timercmn.cpp index fc89d353ac..5fd7fd4767 100644 --- a/src/common/timercmn.cpp +++ b/src/common/timercmn.cpp @@ -18,7 +18,7 @@ // wxWin headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "timerbase.h" #endif @@ -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); }