pcbnew: Fix pads losing nets after Undo.

Wasn't fixed in all places after being broken in
13f5c78e89
This commit is contained in:
Alex 2023-02-23 22:06:39 +03:00
parent f0dd32c3a7
commit f31e5ea783
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 // Create a copy only if the footprint has not been added during this update
FOOTPRINT* copy = nullptr; FOOTPRINT* copy = nullptr;
if( m_commit.GetStatus( aFootprint ) ) if( !m_commit.GetStatus( aFootprint ) )
{ {
copy = static_cast<FOOTPRINT*>( aFootprint->Clone() ); copy = static_cast<FOOTPRINT*>( aFootprint->Clone() );
copy->SetParentGroup( nullptr ); copy->SetParentGroup( nullptr );