diff --git a/pcbnew/netlist_reader/board_netlist_updater.cpp b/pcbnew/netlist_reader/board_netlist_updater.cpp index f230d1cf79..e1982c7404 100644 --- a/pcbnew/netlist_reader/board_netlist_updater.cpp +++ b/pcbnew/netlist_reader/board_netlist_updater.cpp @@ -419,7 +419,7 @@ bool BOARD_NETLIST_UPDATER::updateComponentPadConnections( FOOTPRINT* aFootprint // Create a copy only if the footprint has not been added during this update FOOTPRINT* copy = nullptr; - if( !m_commit.GetStatus( aFootprint ) ) + if( !m_commit.GetStatus( aFootprint ) ) { copy = static_cast( aFootprint->Clone() ); copy->SetParentGroup( nullptr ); @@ -487,6 +487,7 @@ bool BOARD_NETLIST_UPDATER::updateComponentPadConnections( FOOTPRINT* aFootprint aFootprint->GetReference(), pad->GetNumber() ); m_reporter->Report( msg, RPT_SEVERITY_WARNING); + ++m_warningCount; } if( !m_isDryRun )