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:
Jeff Young 2019-10-01 15:31:25 +01:00
parent 58b9d5f69e
commit d9336e9f97
1 changed files with 5 additions and 0 deletions

View File

@ -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: