Enabled autopanning while drawing zones.

This commit is contained in:
Maciej Suminski 2014-03-18 14:01:09 +01:00
parent 342fd6e19e
commit dbcc18ab31
1 changed files with 5 additions and 0 deletions

View File

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