|
@@ -51,9 +51,9 @@ namespace PixiEditor.Models.Controllers
|
|
|
|
|
|
// Clears RedoStack if last move wasn't redo or undo and if redo stack is greater than 0.
|
|
// Clears RedoStack if last move wasn't redo or undo and if redo stack is greater than 0.
|
|
if (lastChangeWasUndo == false && RedoStack.Count > 0)
|
|
if (lastChangeWasUndo == false && RedoStack.Count > 0)
|
|
- {
|
|
|
|
- RedoStack.Clear();
|
|
|
|
- }
|
|
|
|
|
|
+ {
|
|
|
|
+ RedoStack.Clear();
|
|
|
|
+ }
|
|
|
|
|
|
change.Root ??= MainRoot;
|
|
change.Root ??= MainRoot;
|
|
UndoStack.Push(change);
|
|
UndoStack.Push(change);
|