mirror of
https://github.com/ShareX/ShareX.git
synced 2024-06-28 03:00:22 +12:00
Fixed undo/redo bug
This commit is contained in:
parent
3be1ffeefa
commit
e5fe1a8e70
|
@ -1552,6 +1552,13 @@ public void RestoreState(ImageEditorMemento memento)
|
|||
}
|
||||
|
||||
Shapes = memento.Shapes;
|
||||
|
||||
foreach (BaseEffectShape effect in EffectShapes)
|
||||
{
|
||||
effect.OnMoved();
|
||||
}
|
||||
|
||||
OnImageModified();
|
||||
UpdateMenu();
|
||||
}
|
||||
}
|
||||
|
@ -1820,6 +1827,7 @@ private void DuplicateCurrrentShape(bool insertMousePosition)
|
|||
if (shape != null && shape.IsHandledBySelectTool)
|
||||
{
|
||||
BaseShape shapeCopy = shape.Duplicate();
|
||||
|
||||
if (shapeCopy != null)
|
||||
{
|
||||
if (insertMousePosition)
|
||||
|
|
Loading…
Reference in a new issue