Browse Source

Make sure pad locked flags get transferred on ExchangeFootprint.

They used to be in the footprint but were moved to the individual
pads a few months ago.

Also applies to text items.

Fixes https://gitlab.com/kicad/code/kicad/issues/7844
6.0.7
Jeff Young 5 years ago
parent
commit
60b17e727a
  1. 3
      pcbnew/dialogs/dialog_exchange_footprints.cpp

3
pcbnew/dialogs/dialog_exchange_footprints.cpp

@ -426,6 +426,8 @@ void processTextItem( const FP_TEXT& aSrc, FP_TEXT& aDest,
aDest.SetEffects( aSrc );
aDest.SetVisible( visible );
}
aDest.SetLocked( aSrc.IsLocked() );
}
@ -514,6 +516,7 @@ void PCB_EDIT_FRAME::ExchangeFootprint( FOOTPRINT* aExisting, FOOTPRINT* aNew,
{
pad->SetLocalRatsnestVisible( oldPad->GetLocalRatsnestVisible() );
pad->SetPinFunction( oldPad->GetPinFunction() );
pad->SetLocked( oldPad->IsLocked() );
}
pad->SetNetCode( oldPad ? oldPad->GetNetCode() : NETINFO_LIST::UNCONNECTED );

Loading…
Cancel
Save