Browse Source

Dont add second undo if no pixel was selected

CPKreuz 4 years ago
parent
commit
3732392d23
1 changed files with 1 additions and 1 deletions
  1. 1 1
      PixiEditor/Models/Tools/Tools/SelectTool.cs

+ 1 - 1
PixiEditor/Models/Tools/Tools/SelectTool.cs

@@ -46,7 +46,7 @@ namespace PixiEditor.Models.Tools.Tools
                 ActiveSelection.Clear();
             }
 
-            if (SelectionType == SelectionType.New)
+            if (SelectionType == SelectionType.New && ActiveSelection.SelectedPoints.Count != 0)
             {
                 // Add empty selection as the old one get's fully deleted first
                 ViewModelMain.Current.BitmapManager.ActiveDocument.UndoManager.AddUndoChange(