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
This commit is contained in:
parent
e4590e4762
commit
60b17e727a
|
@ -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…
Reference in New Issue