From: Vadim Zeitlin Date: Sat, 18 Sep 2004 09:46:02 +0000 (+0000) Subject: replaced wxLogLastError with an assert when checking an item not attached to a menu... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f03e9ae7a7590ab779ec833a66f7a46be4c5b4b1 replaced wxLogLastError with an assert when checking an item not attached to a menu (see bug 1030141) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29189 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/menuitem.cpp b/src/msw/menuitem.cpp index 8b9127fe3f..0c44163a9a 100644 --- a/src/msw/menuitem.cpp +++ b/src/msw/menuitem.cpp @@ -330,7 +330,7 @@ void wxMenuItem::Check(bool check) GetRealId(), MF_BYCOMMAND | flags) == (DWORD)-1 ) { - wxLogLastError(wxT("CheckMenuItem")); + wxASSERT_MSG( _T("CheckMenuItem() failed, item not in the menu?") ); } }