Don't clear the IS_MOVED flag right before looking at it.

Fixes: lp:1842355
* https://bugs.launchpad.net/kicad/+bug/1842355
This commit is contained in:
Jeff Young 2019-09-11 13:36:00 +01:00
parent 18667377f7
commit 0b981caef8
1 changed files with 2 additions and 1 deletions

View File

@ -992,7 +992,7 @@ void SCH_EDIT_FRAME::AddItemToScreenAndUndoList( SCH_ITEM* aItem, bool aUndoAppe
SaveUndoItemInUndoList( undoItem, aUndoAppend );
}
aItem->ClearEditFlags();
aItem->ClearFlags( IS_NEW );
screen->SetModify();
RefreshItem( aItem );
@ -1017,6 +1017,7 @@ void SCH_EDIT_FRAME::AddItemToScreenAndUndoList( SCH_ITEM* aItem, bool aUndoAppe
RefreshItem( item );
}
aItem->ClearEditFlags();
GetCanvas()->Refresh();
}