Fix logic that was accidentally flipped in earlier commit.

Fixes https://gitlab.com/kicad/code/kicad/issues/12962

Fixes https://gitlab.com/kicad/code/kicad/issues/12969
This commit is contained in:
Jeff Young 2022-11-23 23:07:56 +00:00
parent 0b0c35c4dc
commit 16db0440ba
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ bool BOARD_NETLIST_UPDATER::updateFootprintParameters( FOOTPRINT* aPcbFootprint,
// 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( aPcbFootprint ) ) if( !m_commit.GetStatus( aPcbFootprint ) )
{ {
copy = static_cast<FOOTPRINT*>( aPcbFootprint->Clone() ); copy = static_cast<FOOTPRINT*>( aPcbFootprint->Clone() );
copy->SetParentGroup( nullptr ); copy->SetParentGroup( nullptr );