From fb74bdb059d79f0c9c0ffa23c53c23ae8518d7d3 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 25 Aug 2022 10:12:58 -0700 Subject: [PATCH] Don't consider rule area zones in priority calc --- pcbnew/tools/zone_create_helper.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/tools/zone_create_helper.cpp b/pcbnew/tools/zone_create_helper.cpp index 99eead02e0..e49aca463f 100644 --- a/pcbnew/tools/zone_create_helper.cpp +++ b/pcbnew/tools/zone_create_helper.cpp @@ -65,7 +65,8 @@ void ZONE_CREATE_HELPER::setUniquePriority( ZONE_SETTINGS& aZoneInfo ) for( ZONE* zone : board->Zones() ) { if( zone->GetTeardropAreaType() == TEARDROP_TYPE::TD_NONE - && ( zone->GetLayerSet() & LSET::AllCuMask() ).any() ) + && ( zone->GetLayerSet() & LSET::AllCuMask() ).any() + && !zone->GetIsRuleArea() ) { priorities.insert( zone->GetAssignedPriority() ); }