pcbnew: Fix pads losing nets after Undo.
Wasn't fixed in all places after being broken in
13f5c78e89
This commit is contained in:
parent
f0dd32c3a7
commit
f31e5ea783
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue