diff --git a/eeschema/connection_graph.cpp b/eeschema/connection_graph.cpp index 8f26fd76cc..a95f320404 100644 --- a/eeschema/connection_graph.cpp +++ b/eeschema/connection_graph.cpp @@ -1594,8 +1594,25 @@ std::vector CONNECTION_GRAPH::GetBusesNeedingMigration() if( !connection->IsBus() ) continue; - if( subgraph->GetBusLabels().size() > 1 ) + auto labels = subgraph->GetBusLabels(); + + if( labels.size() > 1 ) { + bool different = false; + wxString first = static_cast( labels.at( 0 ) )->GetText(); + + for( unsigned i = 1; i < labels.size(); ++i ) + { + if( static_cast( labels.at( i ) )->GetText() != first ) + { + different = true; + break; + } + } + + if( !different ) + continue; + wxLogTrace( "CONN", "SG %ld (%s) has multiple bus labels", subgraph->m_code, connection->Name() );