From a4fdbe6f2c50181b8317ad956eb3b7c5866f55ee Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Tue, 28 Feb 2017 21:58:15 -0500 Subject: [PATCH] Register common tools in footprint viewer to fix zoom controls --- pcbnew/modview_frame.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcbnew/modview_frame.cpp b/pcbnew/modview_frame.cpp index 5e21d39c06..7cb36959a7 100644 --- a/pcbnew/modview_frame.cpp +++ b/pcbnew/modview_frame.cpp @@ -55,6 +55,7 @@ #include #include +#include #include "tools/pcbnew_control.h" #include "tools/pcb_actions.h" @@ -201,6 +202,7 @@ FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent drawPanel->SetEventDispatcher( m_toolDispatcher ); m_toolManager->RegisterTool( new PCBNEW_CONTROL ); + m_toolManager->RegisterTool( new COMMON_TOOLS ); m_toolManager->InitTools(); // If a footprint was previously loaded, reload it