Browse Source

Don't show added nets multiple times during dry run update

pull/15/head
Jon Evans 7 years ago
parent
commit
7030c7d948
  1. 10
      pcbnew/board_netlist_updater.cpp

10
pcbnew/board_netlist_updater.cpp

@ -333,11 +333,12 @@ bool BOARD_NETLIST_UPDATER::updateComponentPadConnections( MODULE* aPcbComponent
if( netinfo == nullptr )
{
netinfo = new NETINFO_ITEM( m_board, netName );
// It is a new net, we have to add it
if( !m_isDryRun )
{
changed = true;
netinfo = new NETINFO_ITEM( m_board, netName );
m_commit.Add( netinfo );
}
@ -744,6 +745,13 @@ bool BOARD_NETLIST_UPDATER::UpdateNetlist( NETLIST& aNetlist )
// and the current pad list is wrong in this case.
deleteSinglePadNets();
if( m_isDryRun )
{
for( auto it : m_addedNets )
delete it.second;
m_addedNets.clear();
}
// Update the ratsnest
m_reporter->ReportTail( wxT( "" ), REPORTER::RPT_ACTION );

Loading…
Cancel
Save