X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c2ca375c5620209d77a88d2d378bdcdedbc82e7e..19abad600cbfe9f0f7af81f127f36b89a80c569e:/src/common/timerimpl.cpp diff --git a/src/common/timerimpl.cpp b/src/common/timerimpl.cpp index d952af816f..c2ac8e8712 100644 --- a/src/common/timerimpl.cpp +++ b/src/common/timerimpl.cpp @@ -29,6 +29,7 @@ #include "wx/private/timer.h" #include "wx/utils.h" // for wxNewId() +#include "wx/thread.h" wxTimerImpl::wxTimerImpl(wxTimer *timer) { @@ -47,9 +48,8 @@ void wxTimerImpl::SetOwner(wxEvtHandler *owner, int timerid) void wxTimerImpl::SendEvent() { - wxTimerEvent event(m_idTimer, m_milli); - event.SetEventObject(m_owner); - (void)m_owner->ProcessEvent(event); + wxTimerEvent event(*m_timer); + (void)m_owner->SafelyProcessEvent(event); } bool wxTimerImpl::Start(int milliseconds, bool oneShot)