Don't show added nets multiple times during dry run update
This commit is contained in:
parent
105825c058
commit
7030c7d948
|
@ -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…
Reference in New Issue