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:
parent
55069f24fa
commit
f03e9ae7a7
@ -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?") );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user