gerbview: Give the tools menu a tool to use

Without this it can't actually dispatch any actions, so the
measure tool wasn't working when selected from the menu.
This commit is contained in:
Ian McInerney 2020-10-08 18:31:06 +01:00
parent f238d05ead
commit a697690ebb
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ void GERBVIEW_FRAME::ReCreateMenuBar()
//-- Tools menu ------------------------------------------------------- //-- Tools menu -------------------------------------------------------
// //
ACTION_MENU* toolsMenu = new ACTION_MENU( false ); ACTION_MENU* toolsMenu = new ACTION_MENU( false, selTool );
toolsMenu->Add( _( "&List DCodes..." ), toolsMenu->Add( _( "&List DCodes..." ),
_( "List D-codes defined in Gerber files" ), _( "List D-codes defined in Gerber files" ),