From b867e51c6c571230cb175bc02706d9a043430367 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 23 Feb 2023 22:06:39 +0300 Subject: [PATCH] pcbnew: Fix pads losing nets after Undo. Wasn't fixed in all places after being broken in 13f5c78e89810129c766ed520a2fd4de12d36a6e (cherry picked from commit f31e5ea783754f3c3b8ea03e0672bf79a6ad5057) --- pcbnew/netlist_reader/board_netlist_updater.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/netlist_reader/board_netlist_updater.cpp b/pcbnew/netlist_reader/board_netlist_updater.cpp index 0b11981bf0..9257da0da5 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 );