Don't move locked footprint if pads are locked
This commit is contained in:
parent
d6448ce6b4
commit
721155165d
|
@ -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() );
|
||||
|
|
Loading…
Reference in New Issue