Always use UUIDs for implicit keepout rules.

Fixes https://gitlab.com/kicad/code/kicad/issues/9580
This commit is contained in:
Jeff Young 2021-11-09 17:57:24 +00:00
parent d4e3e67b8d
commit 0dcbfa2b69
1 changed files with 1 additions and 6 deletions

View File

@ -424,17 +424,12 @@ void DRC_ENGINE::loadImplicitRules()
wxString name = zone->GetZoneName();
if( name.IsEmpty() )
{
rule = createImplicitRule( _( "keepout area" ) );
name = zone->m_Uuid.AsString();
}
else
{
rule = createImplicitRule( wxString::Format( _( "keepout area '%s'" ), name ) );
}
rule->m_Condition = new DRC_RULE_CONDITION( wxString::Format( "A.insideArea('%s')",
name ) );
zone->m_Uuid.AsString() ) );
rule->m_LayerCondition = zone->GetLayerSet();