Don't assert unnecessarily when collapsing power ports
See lp:1822678
This commit is contained in:
parent
e7900e994d
commit
3eef4bceac
|
@ -1044,7 +1044,9 @@ void CONNECTION_GRAPH::buildConnectionGraph()
|
||||||
|
|
||||||
auto power_object = dynamic_cast<SCH_PIN_CONNECTION*>( obj );
|
auto power_object = dynamic_cast<SCH_PIN_CONNECTION*>( obj );
|
||||||
|
|
||||||
wxASSERT( power_object );
|
// Skip drivers that aren't power ports
|
||||||
|
if( !power_object )
|
||||||
|
continue;
|
||||||
|
|
||||||
auto name = power_object->GetDefaultNetName( subgraph->m_sheet );
|
auto name = power_object->GetDefaultNetName( subgraph->m_sheet );
|
||||||
int code = -1;
|
int code = -1;
|
||||||
|
|
Loading…
Reference in New Issue