diff --git a/eeschema/connection_graph.cpp b/eeschema/connection_graph.cpp index 1e628bc5dd..32825cb3c5 100644 --- a/eeschema/connection_graph.cpp +++ b/eeschema/connection_graph.cpp @@ -1176,6 +1176,10 @@ void CONNECTION_GRAPH::buildConnectionGraph() if( driver == candidate->m_driver ) continue; + // Sheet pins are not candidates for merging + if( driver->Type() == SCH_SHEET_PIN_T ) + continue; + if( driver->Type() == SCH_PIN_T ) { if( static_cast( driver )->GetName() == test_name ) @@ -1188,8 +1192,7 @@ void CONNECTION_GRAPH::buildConnectionGraph() { wxASSERT( driver->Type() == SCH_LABEL_T || driver->Type() == SCH_GLOBAL_LABEL_T || - driver->Type() == SCH_HIER_LABEL_T || - driver->Type() == SCH_SHEET_PIN_T ); + driver->Type() == SCH_HIER_LABEL_T ); auto text = static_cast( driver );