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