X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2cd78b2a875c3b7abd8a9f1025e164124fae0088..d8fc3398ac61229b4986a6c72eb17af98f41123e:/src/common/timerimpl.cpp diff --git a/src/common/timerimpl.cpp b/src/common/timerimpl.cpp index 3f94268d21..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) { @@ -48,7 +49,7 @@ void wxTimerImpl::SetOwner(wxEvtHandler *owner, int timerid) void wxTimerImpl::SendEvent() { wxTimerEvent event(*m_timer); - (void)m_owner->ProcessEvent(event); + (void)m_owner->SafelyProcessEvent(event); } bool wxTimerImpl::Start(int milliseconds, bool oneShot)