From 43ad15dc0e83d0b9a38b038d926a05079490cfd7 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 4 May 2023 11:49:23 -0700 Subject: [PATCH] Force not-on-board symbols to NONE priority Symbols that are not on the board should not affect the arbitrary names assigned to unlabeled nets. (cherry picked from commit a28d590b9ba6f2882ecd25a938996bf3a8f6faa2) --- eeschema/connection_graph.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eeschema/connection_graph.cpp b/eeschema/connection_graph.cpp index 899b6a4d45..f82978e677 100644 --- a/eeschema/connection_graph.cpp +++ b/eeschema/connection_graph.cpp @@ -483,9 +483,12 @@ CONNECTION_SUBGRAPH::PRIORITY CONNECTION_SUBGRAPH::GetDriverPriority( SCH_ITEM* case SCH_PIN_T: { SCH_PIN* sch_pin = static_cast( aDriver ); + SCH_SYMBOL* sym = sch_pin->GetParentSymbol(); if( sch_pin->IsPowerConnection() ) return PRIORITY::POWER_PIN; + else if( !sym || !sym->GetIncludeOnBoard() || sym->GetRef( &m_sheet ).StartsWith( '#' ) ) + return PRIORITY::NONE; else return PRIORITY::PIN; }