OSX: If no menu item given, use wxID_NONE as item ID

This commit is contained in:
Ian McInerney
2019-11-05 08:54:54 +00:00
parent 715cb66ac4
commit 15909a5f7c

View File

@@ -379,7 +379,7 @@ bool wxMenu::HandleCommandProcess( wxMenuItem* item, wxWindow* senderWindow )
void wxMenu::HandleMenuItemHighlighted( wxMenuItem* item )
{
int menuid = item ? item->GetId() : 0;
int menuid = item ? item->GetId() : wxID_NONE;
wxMenuEvent wxevent(wxEVT_MENU_HIGHLIGHT, menuid, this);
ProcessMenuEvent(this, wxevent, GetWindow());
}