as we cannot handle zero commands properly, we have to warn

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2005-01-04 07:03:09 +00:00
parent b51daa4f6c
commit 408aef5ec1

View File

@@ -46,8 +46,7 @@ wxMenuItem::wxMenuItem(wxMenu *pParentMenu,
wxMenu *pSubMenu)
: wxMenuItemBase(pParentMenu, id, text, strHelp, kind, pSubMenu)
{
// TO DISCUSS on dev : whether we can veto id 0
// wxASSERT_MSG( id != 0 || pSubMenu != NULL , wxT("A MenuItem ID of Zero does not work under Mac") ) ;
wxASSERT_MSG( id != 0 || pSubMenu != NULL , wxT("A MenuItem ID of Zero does not work under Mac") ) ;
// In other languages there is no difference in naming the Exit/Quit menu item between MacOS and Windows guidelines
// therefore these item must not be translated