git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9454
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void MyFrame::LogMenuEvent(const wxCommandEvent& event)
{
int id = event.GetId();
void MyFrame::LogMenuEvent(const wxCommandEvent& event)
{
int id = event.GetId();
+ if (!GetMenuBar()->FindItem(id))
+ return;
wxString msg = wxString::Format("Menu command %d", id);
if ( GetMenuBar()->FindItem(id)->IsCheckable() )
{
wxString msg = wxString::Format("Menu command %d", id);
if ( GetMenuBar()->FindItem(id)->IsCheckable() )
{