Don't assert unnecessarily when collapsing power ports

See lp:1822678
This commit is contained in:
Jon Evans 2019-04-02 11:38:02 -04:00
parent e7900e994d
commit 3eef4bceac
1 changed files with 3 additions and 1 deletions

View File

@ -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;