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
This commit is contained in:
Vadim Zeitlin 2004-09-18 09:46:02 +00:00
parent 55069f24fa
commit f03e9ae7a7

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