← Back to team overview

kicad-developers team mailing list archive

[PATCH] Fix zoom controls in footprint viewer

 

This got overlooked in common_tools refactor

-Jon
From 5eeb0dbf18477b9358335a0943c0aeb0767307ad Mon Sep 17 00:00:00 2001
From: Jon Evans <jon@xxxxxxxxxxxxx>
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 5e21d39..7cb3695 100644
--- a/pcbnew/modview_frame.cpp
+++ b/pcbnew/modview_frame.cpp
@@ -55,6 +55,7 @@
 
 #include <tool/tool_manager.h>
 #include <tool/tool_dispatcher.h>
+#include <tool/common_tools.h>
 #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
-- 
2.7.4


Follow ups