X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c2ca375c5620209d77a88d2d378bdcdedbc82e7e..bec76e18352b3b0a94b0b54c8d66159722651e8b:/src/common/timerimpl.cpp?ds=inline diff --git a/src/common/timerimpl.cpp b/src/common/timerimpl.cpp index d952af816f..4ab6fa8e23 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,8 +48,7 @@ void wxTimerImpl::SetOwner(wxEvtHandler *owner, int timerid) void wxTimerImpl::SendEvent() { - wxTimerEvent event(m_idTimer, m_milli); - event.SetEventObject(m_owner); + wxTimerEvent event(*m_timer); (void)m_owner->ProcessEvent(event); }