Always use UUIDs for implicit keepout rules.
Fixes https://gitlab.com/kicad/code/kicad/issues/9580
This commit is contained in:
parent
d4e3e67b8d
commit
0dcbfa2b69
|
@ -424,17 +424,12 @@ void DRC_ENGINE::loadImplicitRules()
|
||||||
wxString name = zone->GetZoneName();
|
wxString name = zone->GetZoneName();
|
||||||
|
|
||||||
if( name.IsEmpty() )
|
if( name.IsEmpty() )
|
||||||
{
|
|
||||||
rule = createImplicitRule( _( "keepout area" ) );
|
rule = createImplicitRule( _( "keepout area" ) );
|
||||||
name = zone->m_Uuid.AsString();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
rule = createImplicitRule( wxString::Format( _( "keepout area '%s'" ), name ) );
|
rule = createImplicitRule( wxString::Format( _( "keepout area '%s'" ), name ) );
|
||||||
}
|
|
||||||
|
|
||||||
rule->m_Condition = new DRC_RULE_CONDITION( wxString::Format( "A.insideArea('%s')",
|
rule->m_Condition = new DRC_RULE_CONDITION( wxString::Format( "A.insideArea('%s')",
|
||||||
name ) );
|
zone->m_Uuid.AsString() ) );
|
||||||
|
|
||||||
rule->m_LayerCondition = zone->GetLayerSet();
|
rule->m_LayerCondition = zone->GetLayerSet();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue