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 a28d590b9b)
This commit is contained in:
Seth Hillbrand 2023-05-04 11:49:23 -07:00 committed by Wayne Stambaugh
parent d20147c79f
commit 43ad15dc0e
1 changed files with 3 additions and 0 deletions

View File

@ -483,9 +483,12 @@ CONNECTION_SUBGRAPH::PRIORITY CONNECTION_SUBGRAPH::GetDriverPriority( SCH_ITEM*
case SCH_PIN_T:
{
SCH_PIN* sch_pin = static_cast<SCH_PIN*>( 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;
}