From 34d5f1f9fecc4334098a6ce26554591ac7acf706 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 4 May 2023 12:06:19 -0700 Subject: [PATCH] Fix a28d590b9b Needs to be static, so keep the reference from the associated symbol and not the SCH_SYMBOL instance. Both will likely have the same prefix, which is all we care about here (cherry picked from commit 2cac992801778d361635f3b100e627b1e2c9968d) --- eeschema/connection_graph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/connection_graph.cpp b/eeschema/connection_graph.cpp index f82978e677..5b9112f8f5 100644 --- a/eeschema/connection_graph.cpp +++ b/eeschema/connection_graph.cpp @@ -487,7 +487,7 @@ CONNECTION_SUBGRAPH::PRIORITY CONNECTION_SUBGRAPH::GetDriverPriority( SCH_ITEM* if( sch_pin->IsPowerConnection() ) return PRIORITY::POWER_PIN; - else if( !sym || !sym->GetIncludeOnBoard() || sym->GetRef( &m_sheet ).StartsWith( '#' ) ) + else if( !sym || !sym->GetIncludeOnBoard() || sym->GetLibSymbolRef()->GetReferenceField().GetText().StartsWith( '#' ) ) return PRIORITY::NONE; else return PRIORITY::PIN;