From f0e0254e2752c21edac7b0931400eb5da5c93b92 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 30 Jan 2017 13:21:22 +0100 Subject: [PATCH] Added missing tool initialization --- pcbnew/moduleframe.cpp | 2 +- pcbnew/modview_frame.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/moduleframe.cpp b/pcbnew/moduleframe.cpp index 77f1502c48..43ca40b670 100644 --- a/pcbnew/moduleframe.cpp +++ b/pcbnew/moduleframe.cpp @@ -958,12 +958,12 @@ void FOOTPRINT_EDIT_FRAME::setupTools() m_toolManager->RegisterTool( new MODULE_EDITOR_TOOLS ); m_toolManager->RegisterTool( new PLACEMENT_TOOL ); m_toolManager->RegisterTool( new PICKER_TOOL ); + m_toolManager->InitTools(); m_toolManager->GetTool()->SetEditModules( true ); m_toolManager->GetTool()->SetEditModules( true ); m_toolManager->GetTool()->SetEditModules( true ); - m_toolManager->ResetTools( TOOL_BASE::RUN ); m_toolManager->InvokeTool( "pcbnew.InteractiveSelection" ); } diff --git a/pcbnew/modview_frame.cpp b/pcbnew/modview_frame.cpp index ee3e3eb99e..93e43e1a43 100644 --- a/pcbnew/modview_frame.cpp +++ b/pcbnew/modview_frame.cpp @@ -199,7 +199,7 @@ FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent drawPanel->SetEventDispatcher( m_toolDispatcher ); m_toolManager->RegisterTool( new PCBNEW_CONTROL ); - m_toolManager->ResetTools( TOOL_BASE::RUN ); + m_toolManager->InitTools(); // If a footprint was previously loaded, reload it if( getCurNickname().size() && getCurFootprintName().size() )