From 47582e274122c7890721873bfe70dca3a5604764 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 30 Apr 2015 10:46:08 +0200 Subject: [PATCH] GAL autozooms on every EDA_DRAW_FRAME::Zoom_Automatique --- common/zoom.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/zoom.cpp b/common/zoom.cpp index ef04c78dfc..8d4ae6740f 100644 --- a/common/zoom.cpp +++ b/common/zoom.cpp @@ -40,6 +40,7 @@ #include #include #include +#include void EDA_DRAW_FRAME::RedrawScreen( const wxPoint& aCenterPoint, bool aWarpPointer ) @@ -90,6 +91,8 @@ void EDA_DRAW_FRAME::Zoom_Automatique( bool aWarpPointer ) if( !IsGalCanvasActive() ) RedrawScreen( GetScrollCenterPosition(), aWarpPointer ); + else + m_toolManager->RunAction( "common.Control.zoomFitScreen", true ); }