From 60b17e727a40d62657024eaf2fb356b9dd057d4f Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 9 Mar 2021 12:24:28 +0000 Subject: [PATCH] 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 --- pcbnew/dialogs/dialog_exchange_footprints.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/dialogs/dialog_exchange_footprints.cpp b/pcbnew/dialogs/dialog_exchange_footprints.cpp index 558bc82f04..af5bfc181b 100644 --- a/pcbnew/dialogs/dialog_exchange_footprints.cpp +++ b/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 );