From 418df36790658ff288809db4b8bca055eb4a0974 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 25 Aug 2022 08:39:55 -0700 Subject: [PATCH] Avoid teardrops in priority calculation When choosing a new priority value, don't look at teardrops (which have high priority) --- pcbnew/tools/zone_create_helper.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pcbnew/tools/zone_create_helper.cpp b/pcbnew/tools/zone_create_helper.cpp index e33c166049..0fbf54e20c 100644 --- a/pcbnew/tools/zone_create_helper.cpp +++ b/pcbnew/tools/zone_create_helper.cpp @@ -75,7 +75,10 @@ std::unique_ptr ZONE_CREATE_HELPER::createNewZone( bool aKeepout ) unsigned priority = 0; for( ZONE* zone : board->Zones() ) - priority = std::max( priority, zone->GetAssignedPriority() ); + { + if( zone->GetTeardropAreaType() == TEARDROP_TYPE::TD_NONE ) + priority = std::max( priority, zone->GetAssignedPriority() ); + } zoneInfo.m_ZonePriority = static_cast( priority + 1 ); }