From 0dcbfa2b69bd2a501807dad46b400dd8390334d2 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 9 Nov 2021 17:57:24 +0000 Subject: [PATCH] Always use UUIDs for implicit keepout rules. Fixes https://gitlab.com/kicad/code/kicad/issues/9580 --- pcbnew/drc/drc_engine.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pcbnew/drc/drc_engine.cpp b/pcbnew/drc/drc_engine.cpp index 64fa896f9f..7e6b5df3d6 100644 --- a/pcbnew/drc/drc_engine.cpp +++ b/pcbnew/drc/drc_engine.cpp @@ -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();