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.
This commit is contained in:
Seth Hillbrand 2023-05-04 11:49:23 -07:00
parent c20ef06f56
commit a28d590b9b
1 changed files with 3 additions and 0 deletions

View File

@ -477,9 +477,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->IsGlobalPower() )
return PRIORITY::POWER_PIN;
else if( !sym || !sym->GetIncludeOnBoard() || sym->GetRef( &m_sheet ).StartsWith( '#' ) )
return PRIORITY::NONE;
else
return PRIORITY::PIN;
}