]> git.saurik.com Git - wxWidgets.git/commitdiff
replaced wxLogLastError with an assert when checking an item not attached to a menu...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 18 Sep 2004 09:46:02 +0000 (09:46 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 18 Sep 2004 09:46:02 +0000 (09:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29189 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/menuitem.cpp

index 8b9127fe3f994bdf6680902d901c98e0fae02d25..0c44163a9afab9c3d3854cf022033184a32d7daa 100644 (file)
@@ -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?") );
         }
     }