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 2cac992801)
This commit is contained in:
Seth Hillbrand 2023-05-04 12:06:19 -07:00 committed by Wayne Stambaugh
parent 43ad15dc0e
commit 34d5f1f9fe
1 changed files with 1 additions and 1 deletions

View File

@ -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;