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:
parent
18667377f7
commit
0b981caef8
|
@ -992,7 +992,7 @@ void SCH_EDIT_FRAME::AddItemToScreenAndUndoList( SCH_ITEM* aItem, bool aUndoAppe
|
||||||
SaveUndoItemInUndoList( undoItem, aUndoAppend );
|
SaveUndoItemInUndoList( undoItem, aUndoAppend );
|
||||||
}
|
}
|
||||||
|
|
||||||
aItem->ClearEditFlags();
|
aItem->ClearFlags( IS_NEW );
|
||||||
|
|
||||||
screen->SetModify();
|
screen->SetModify();
|
||||||
RefreshItem( aItem );
|
RefreshItem( aItem );
|
||||||
|
@ -1017,6 +1017,7 @@ void SCH_EDIT_FRAME::AddItemToScreenAndUndoList( SCH_ITEM* aItem, bool aUndoAppe
|
||||||
RefreshItem( item );
|
RefreshItem( item );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
aItem->ClearEditFlags();
|
||||||
GetCanvas()->Refresh();
|
GetCanvas()->Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue