Reset moved flag after completing move.

Fixes https://gitlab.com/kicad/code/kicad/issues/7818
This commit is contained in:
Jeff Young 2021-03-10 15:46:06 +00:00
parent 861ad0b6ec
commit 068e85c567
1 changed files with 3 additions and 0 deletions

View File

@ -779,6 +779,7 @@ int SCH_MOVE_TOOL::AlignElements( const TOOL_EVENT& aEvent )
append_undo = true;
moveItem( dragItem, gridpt );
dragItem->ClearFlags( IS_MOVED );
updateItem( dragItem, true );
}
}
@ -795,6 +796,7 @@ int SCH_MOVE_TOOL::AlignElements( const TOOL_EVENT& aEvent )
moveItem( item, gridpt );
updateItem( item, true );
item->ClearFlags( IS_MOVED );
}
}
else
@ -834,6 +836,7 @@ int SCH_MOVE_TOOL::AlignElements( const TOOL_EVENT& aEvent )
append_undo = true;
moveItem( dragItem, most_common );
dragItem->ClearFlags( IS_MOVED );
updateItem( dragItem, true );
}
}