From dbcc18ab31e9bd8ef9abc1911e08d40c7e09cba0 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 18 Mar 2014 14:01:09 +0100 Subject: [PATCH] Enabled autopanning while drawing zones. --- pcbnew/tools/drawing_tool.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pcbnew/tools/drawing_tool.cpp b/pcbnew/tools/drawing_tool.cpp index 67b2b607b1..e35956f213 100644 --- a/pcbnew/tools/drawing_tool.cpp +++ b/pcbnew/tools/drawing_tool.cpp @@ -1040,6 +1040,8 @@ int DRAWING_TOOL::drawZone( bool aKeepout ) ZONE_SETTINGS zoneInfo = m_frame->GetZoneSettings(); zoneInfo.m_CurrentZone_Layer = m_frame->GetScreen()->m_Active_Layer; + m_controls->SetAutoPan( true ); + // Show options dialog ZONE_EDIT_T dialogResult; if( aKeepout ) @@ -1053,7 +1055,10 @@ int DRAWING_TOOL::drawZone( bool aKeepout ) } if( dialogResult == ZONE_ABORT ) + { + m_controls->SetAutoPan( false ); continue; + } // Apply the selected settings zone = new ZONE_CONTAINER( m_board );