Register common tools in footprint viewer to fix zoom controls

This commit is contained in:
Jon Evans 2017-02-28 21:58:15 -05:00 committed by Maciej Suminski
parent 7034ea0c95
commit a4fdbe6f2c
1 changed files with 2 additions and 0 deletions

View File

@ -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