From d9336e9f9767f933d4a20246fa91f84adacfeabf Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 1 Oct 2019 15:31:25 +0100 Subject: [PATCH] Reset autoplace flag when a field is moved with respect to its component. Fixes: lp:1843929 * https://bugs.launchpad.net/kicad/+bug/1843929 --- eeschema/tools/sch_move_tool.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eeschema/tools/sch_move_tool.cpp b/eeschema/tools/sch_move_tool.cpp index a131b0082e..5e0ff75e83 100644 --- a/eeschema/tools/sch_move_tool.cpp +++ b/eeschema/tools/sch_move_tool.cpp @@ -572,6 +572,11 @@ void SCH_MOVE_TOOL::moveItem( EDA_ITEM* aItem, VECTOR2I aDelta, bool isDrag ) wxPoint transformedDelta = transform.TransformCoordinate( (wxPoint) aDelta ); static_cast( 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: