pcbnew: Fix pads losing nets after Undo.

Wasn't fixed in all places after being broken in
13f5c78e89


(cherry picked from commit f31e5ea783)
This commit is contained in:
Alex 2023-02-23 22:06:39 +03:00 committed by dsa-t
parent 7693b93c50
commit b867e51c6c
1 changed files with 1 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 );