Properly set keepout flag for new zones in GAL

This commit is contained in:
Johannes Agricola 2016-01-07 14:39:21 -05:00 committed by Chris Pavlina
parent e8e0a75b8c
commit 07b73b9677
1 changed files with 1 additions and 0 deletions

View File

@ -1159,6 +1159,7 @@ int DRAWING_TOOL::drawZone( bool aKeepout )
// Get the current default settings for zones // Get the current default settings for zones
ZONE_SETTINGS zoneInfo = m_frame->GetZoneSettings(); ZONE_SETTINGS zoneInfo = m_frame->GetZoneSettings();
zoneInfo.m_CurrentZone_Layer = m_frame->GetScreen()->m_Active_Layer; zoneInfo.m_CurrentZone_Layer = m_frame->GetScreen()->m_Active_Layer;
zoneInfo.SetIsKeepout(aKeepout);
m_controls->SetAutoPan( true ); m_controls->SetAutoPan( true );
m_controls->CaptureCursor( true ); m_controls->CaptureCursor( true );