Ver código fonte

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

CPKreuz 4 anos atrás
pai
commit
06b0c729a2
1 arquivos alterados com 1 adições e 1 exclusões
  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;