From f03e9ae7a7590ab779ec833a66f7a46be4c5b4b1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 18 Sep 2004 09:46:02 +0000 Subject: [PATCH] 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 --- src/msw/menuitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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?") ); } } -- 2.45.2