From 7dadeadbf3f07a228fc30b79a0f1e7f6c2a24344 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 6 Feb 2015 22:01:57 +0100 Subject: [PATCH] bugfix 1418736: pcbnew crashes if "Interactive Router" was selected from the context menu. --- common/tool/context_menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/tool/context_menu.cpp b/common/tool/context_menu.cpp index 105e283d6b..86c41c301b 100644 --- a/common/tool/context_menu.cpp +++ b/common/tool/context_menu.cpp @@ -132,7 +132,7 @@ void CONTEXT_MENU::SetTitle( const wxString& aTitle ) else { InsertSeparator( 0 ); - Insert( 0, new wxMenuItem( this, -1, aTitle, wxEmptyString, wxITEM_NORMAL ) ); + Insert( 0, new wxMenuItem( this, wxID_NONE, aTitle, wxEmptyString, wxITEM_NORMAL ) ); m_titleSet = true; } }