Don't move locked footprint if pads are locked

This commit is contained in:
Seth Hillbrand 2021-01-08 13:18:38 -08:00
parent d6448ce6b4
commit 721155165d
1 changed files with 2 additions and 1 deletions

View File

@ -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() );