Pcbnew: Fix Bug #1096766 ( Can't create filled zones after keepout zones)
This commit is contained in:
parent
92831ee7d4
commit
baf18a6379
|
@ -580,10 +580,14 @@ int PCB_EDIT_FRAME::Begin_Zone( wxDC* DC )
|
||||||
edited = InvokeKeepoutAreaEditor( this, &zoneInfo );
|
edited = InvokeKeepoutAreaEditor( this, &zoneInfo );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
zoneInfo.SetIsKeepout( false );
|
||||||
edited = InvokeCopperZonesEditor( this, &zoneInfo );
|
edited = InvokeCopperZonesEditor( this, &zoneInfo );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else // Put a zone on a non copper layer (technical layer)
|
else // Put a zone on a non copper layer (technical layer)
|
||||||
{
|
{
|
||||||
|
zoneInfo.SetIsKeepout( false );
|
||||||
zoneInfo.m_NetcodeSelection = 0; // No net for non copper zones
|
zoneInfo.m_NetcodeSelection = 0; // No net for non copper zones
|
||||||
edited = InvokeNonCopperZonesEditor( this, zone, &zoneInfo );
|
edited = InvokeNonCopperZonesEditor( this, zone, &zoneInfo );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue