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:
parent
d20147c79f
commit
43ad15dc0e
|
@ -483,9 +483,12 @@ CONNECTION_SUBGRAPH::PRIORITY CONNECTION_SUBGRAPH::GetDriverPriority( SCH_ITEM*
|
||||||
case SCH_PIN_T:
|
case SCH_PIN_T:
|
||||||
{
|
{
|
||||||
SCH_PIN* sch_pin = static_cast<SCH_PIN*>( aDriver );
|
SCH_PIN* sch_pin = static_cast<SCH_PIN*>( aDriver );
|
||||||
|
SCH_SYMBOL* sym = sch_pin->GetParentSymbol();
|
||||||
|
|
||||||
if( sch_pin->IsPowerConnection() )
|
if( sch_pin->IsPowerConnection() )
|
||||||
return PRIORITY::POWER_PIN;
|
return PRIORITY::POWER_PIN;
|
||||||
|
else if( !sym || !sym->GetIncludeOnBoard() || sym->GetRef( &m_sheet ).StartsWith( '#' ) )
|
||||||
|
return PRIORITY::NONE;
|
||||||
else
|
else
|
||||||
return PRIORITY::PIN;
|
return PRIORITY::PIN;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue