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:
parent
c20ef06f56
commit
a28d590b9b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue