From 15909a5f7c0b7efe8ea3dc1ebced54a76504c5f4 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Tue, 5 Nov 2019 08:54:54 +0000 Subject: [PATCH] OSX: If no menu item given, use wxID_NONE as item ID --- src/osx/menu_osx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/menu_osx.cpp b/src/osx/menu_osx.cpp index 75251bc06a..40fd87d164 100644 --- a/src/osx/menu_osx.cpp +++ b/src/osx/menu_osx.cpp @@ -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()); }