Don't depend on a keepout zone having no priority.
Fixes https://gitlab.com/kicad/code/kicad/issues/7776
This commit is contained in:
parent
c13ff9cec9
commit
341b0a5652
|
@ -935,14 +935,18 @@ void ZONE_FILLER::buildCopperItemClearances( const ZONE* aZone, PCB_LAYER_ID aLa
|
|||
if( checkForCancel( m_progressReporter ) )
|
||||
return;
|
||||
|
||||
if( otherZone->GetIsRuleArea() )
|
||||
{
|
||||
if( otherZone->GetDoNotAllowCopperPour() )
|
||||
knockoutZoneClearance( otherZone );
|
||||
}
|
||||
else
|
||||
{
|
||||
if( otherZone->GetNetCode() != aZone->GetNetCode()
|
||||
&& otherZone->GetPriority() > aZone->GetPriority() )
|
||||
{
|
||||
knockoutZoneClearance( otherZone );
|
||||
}
|
||||
else if( otherZone->GetIsRuleArea() && otherZone->GetDoNotAllowCopperPour() )
|
||||
{
|
||||
knockoutZoneClearance( otherZone );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -953,14 +957,18 @@ void ZONE_FILLER::buildCopperItemClearances( const ZONE* aZone, PCB_LAYER_ID aLa
|
|||
if( checkForCancel( m_progressReporter ) )
|
||||
return;
|
||||
|
||||
if( otherZone->GetIsRuleArea() )
|
||||
{
|
||||
if( otherZone->GetDoNotAllowCopperPour() )
|
||||
knockoutZoneClearance( otherZone );
|
||||
}
|
||||
else
|
||||
{
|
||||
if( otherZone->GetNetCode() != aZone->GetNetCode()
|
||||
&& otherZone->GetPriority() > aZone->GetPriority() )
|
||||
{
|
||||
knockoutZoneClearance( otherZone );
|
||||
}
|
||||
else if( otherZone->GetIsRuleArea() && otherZone->GetDoNotAllowCopperPour() )
|
||||
{
|
||||
knockoutZoneClearance( otherZone );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue