diff --git a/pcbnew/netlist_reader/board_netlist_updater.cpp b/pcbnew/netlist_reader/board_netlist_updater.cpp index 31be39fed7..8f688d2e8d 100644 --- a/pcbnew/netlist_reader/board_netlist_updater.cpp +++ b/pcbnew/netlist_reader/board_netlist_updater.cpp @@ -648,14 +648,8 @@ bool BOARD_NETLIST_UPDATER::updateComponentPadConnections( FOOTPRINT* aFootprint if( pad->IsNoConnectPad() ) { - netName = wxString::Format( wxT( "unconnected-(%s-Pad%s)" ), - aFootprint->GetReference(), pad->GetNumber() ); - for( int jj = 0; !padNetnames.insert( netName ).second; jj++ ) - { - netName = wxString::Format( wxT( "unconnected-(%s-Pad%s_%d)" ), - aFootprint->GetReference(), pad->GetNumber(), jj ); - } + netName = wxString::Format( wxS( "%s_%d" ), net.GetNetName(), jj ); } NETINFO_ITEM* netinfo = m_board->FindNet( netName );