Browse Source

Pcbnew, exchange footprints: fix a bug that prevent the new footprint to be at the right place.

Fixes: lp:1838446
https://bugs.launchpad.net/kicad/+bug/1838446
pull/14/head
jean-pierre charras 6 years ago
parent
commit
090073cc3b
  1. 4
      pcbnew/dialogs/dialog_exchange_footprints.cpp

4
pcbnew/dialogs/dialog_exchange_footprints.cpp

@ -419,6 +419,10 @@ void PCB_EDIT_FRAME::Exchange_Module( MODULE* aSrc, MODULE* aDest, BOARD_COMMIT&
* when all modules are on board */
PlaceModule( aDest, nullptr, false );
// Copy full placement, locked flag and pad net names (when possible) but not local
// settings like clearances (use library values)
aDest->SetPosition( aSrc->GetPosition() );
if( aDest->GetLayer() != aSrc->GetLayer() )
aDest->Flip( aSrc->GetPosition() );

Loading…
Cancel
Save