Reset autoplace flag when a field is moved with respect to its component.
Fixes: lp:1843929 * https://bugs.launchpad.net/kicad/+bug/1843929
This commit is contained in:
parent
58b9d5f69e
commit
d9336e9f97
|
@ -572,6 +572,11 @@ void SCH_MOVE_TOOL::moveItem( EDA_ITEM* aItem, VECTOR2I aDelta, bool isDrag )
|
|||
wxPoint transformedDelta = transform.TransformCoordinate( (wxPoint) aDelta );
|
||||
|
||||
static_cast<SCH_ITEM*>( aItem )->Move( transformedDelta );
|
||||
|
||||
// If we're moving a field with respect to its parent then it's no longer auto-placed
|
||||
if( aItem->Type() == SCH_FIELD_T && !component->IsSelected() )
|
||||
component->ClearFieldsAutoplaced();
|
||||
|
||||
break;
|
||||
}
|
||||
case SCH_SHEET_PIN_T:
|
||||
|
|
Loading…
Reference in New Issue