CPKreuz преди 4 години
родител
ревизия
b550c25e33
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      PixiEditor/Models/Controllers/UndoManager.cs

+ 3 - 3
PixiEditor/Models/Controllers/UndoManager.cs

@@ -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);