OSX: If no menu item given, use wxID_NONE as item ID
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user