BOARD_NETLIST_UPDATER: add missing count of warnings

From master branch
Fixes #14290
https://gitlab.com/kicad/code/kicad/issues/14290
This commit is contained in:
jean-pierre charras 2023-03-18 17:54:03 +01:00
parent e5087ca3db
commit 94fd0df2e2
1 changed files with 2 additions and 1 deletions

View File

@ -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<FOOTPRINT*>( 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 )