X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8e72b8b51770b59a83eb32f4d766b89f6c4dc615..dcfb179bc7626b810b5dc589bd5db0e2bae0e8fb:/src/common/event.cpp?ds=sidebyside diff --git a/src/common/event.cpp b/src/common/event.cpp index 6bdc802f27..450a0faae9 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -711,8 +711,8 @@ bool wxEvtHandler::ProcessEvent(wxEvent& event) { #if wxUSE_GUI - // We have to use the actual window or processing events from wxWindowNative - // destructor won't work (we don't see the wxWindow class) + // We have to use the actual window or processing events from + // wxWindowNative destructor won't work (we don't see the wxWindow class) #ifdef __WXDEBUG__ // check that our flag corresponds to reality wxClassInfo* info = NULL; @@ -735,7 +735,7 @@ bool wxEvtHandler::ProcessEvent(wxEvent& event) #endif wxASSERT_MSG( m_isWindow == IsKindOf(info), - _T("this should [not] be a window but it is [not]") ); + wxString(GetClassInfo()->GetClassName()) + _T(" should [not] be a window but it is [not]") ); #endif #endif // wxUSE_GUI