From a697690ebbc4b41f60d8d9b006c406b5e867a4e9 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Thu, 8 Oct 2020 18:31:06 +0100 Subject: [PATCH] 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. --- gerbview/menubar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gerbview/menubar.cpp b/gerbview/menubar.cpp index 9f160b57a7..6416a9f44a 100644 --- a/gerbview/menubar.cpp +++ b/gerbview/menubar.cpp @@ -208,7 +208,7 @@ void GERBVIEW_FRAME::ReCreateMenuBar() //-- Tools menu ------------------------------------------------------- // - ACTION_MENU* toolsMenu = new ACTION_MENU( false ); + ACTION_MENU* toolsMenu = new ACTION_MENU( false, selTool ); toolsMenu->Add( _( "&List DCodes..." ), _( "List D-codes defined in Gerber files" ),