From 721155165d0c32eed89dbc007dae0a6c983dc4ee Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 8 Jan 2021 13:18:38 -0800 Subject: [PATCH] Don't move locked footprint if pads are locked --- pcbnew/tools/edit_tool.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/tools/edit_tool.cpp b/pcbnew/tools/edit_tool.cpp index 35f238cfe0..3bf1bd8931 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/pcbnew/tools/edit_tool.cpp @@ -344,7 +344,8 @@ int EDIT_TOOL::doMoveSelection( TOOL_EVENT aEvent, bool aPickReference ) aCollector.Remove( item ); /// Locked pads do not get moved independently of the footprint - if( item->Type() == PCB_PAD_T && item->IsLocked() ) + if( item->Type() == PCB_PAD_T && item->IsLocked() + && !item->GetParent()->IsLocked() ) { if( !aCollector.HasItem( item->GetParent() ) ) to_add.insert( item->GetParent() );