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;