X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5c526007a8909e8856a6d1fb656c5150738d2e4a..46fa338b6f7462b684b2d6c694849769f75a2cf9:/src/common/event.cpp diff --git a/src/common/event.cpp b/src/common/event.cpp index 678d31d3cc..8b0fb73f57 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -1095,9 +1095,11 @@ void wxEvtHandler::AddPendingEvent(wxEvent& event) void wxEvtHandler::ProcessPendingEvents() { - // DE: It doesn't look like this method was intended to be called unless - // pending events have already been created. - wxASSERT_MSG(m_pendingEvents,wxT("Please call wxApp::ProcessPendingEvents() instead")); + // this method is only called by wxApp if this handler does have pending + // events + wxCHECK_RET( m_pendingEvents, + wxT("Please call wxApp::ProcessPendingEvents() instead") ); + #if defined(__VISAGECPP__) wxENTER_CRIT_SECT( m_eventsLocker); #else