Pcbnew: Fix Bug #1096766 ( Can't create filled zones after keepout zones)

This commit is contained in:
jean-pierre charras 2013-01-07 08:46:01 +01:00
parent 2dd5bcea2f
commit 0cb7b84880
1 changed files with 4 additions and 0 deletions

View File

@ -580,10 +580,14 @@ int PCB_EDIT_FRAME::Begin_Zone( wxDC* DC )
edited = InvokeKeepoutAreaEditor( this, &zoneInfo );
}
else
{
zoneInfo.SetIsKeepout( false );
edited = InvokeCopperZonesEditor( this, &zoneInfo );
}
}
else // Put a zone on a non copper layer (technical layer)
{
zoneInfo.SetIsKeepout( false );
zoneInfo.m_NetcodeSelection = 0; // No net for non copper zones
edited = InvokeNonCopperZonesEditor( this, zone, &zoneInfo );
}