Jelajahi Sumber

Merge branch 'msix' of github.com:PixiEditor/PixiEditor into msix

CPKreuz 4 tahun lalu
induk
melakukan
06b0c729a2
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      PixiEditor/Models/Tools/Tools/SelectTool.cs

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

@@ -20,6 +20,7 @@ namespace PixiEditor.Models.Tools.Tools
     public class SelectTool : ReadonlyTool
     {
         private IEnumerable<Coordinates> oldSelectedPoints;
+        private RectangleTool rectangleTool = new RectangleTool();
 
         private static Selection ActiveSelection { get => ViewModelMain.Current.BitmapManager.ActiveDocument.ActiveSelection; }
 
@@ -57,7 +58,6 @@ namespace PixiEditor.Models.Tools.Tools
 
         public IEnumerable<Coordinates> GetRectangleSelectionForPoints(Coordinates start, Coordinates end)
         {
-            RectangleTool rectangleTool = new RectangleTool();
             List<Coordinates> selection = rectangleTool.CreateRectangle(start, end, 1).ToList();
             selection.AddRange(rectangleTool.CalculateFillForRectangle(start, end, 1));
             return selection;