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?") ); } }