소스 검색

Fixed magic wand tool single layer mode

flabbet 3 년 전
부모
커밋
34a142fff6
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      PixiEditor/Models/ImageManipulation/ToolCalculator.cs
  2. 1 0
      PixiEditor/Models/Tools/Tools/MagicWandTool.cs

+ 1 - 1
PixiEditor/Models/ImageManipulation/ToolCalculator.cs

@@ -156,7 +156,7 @@ namespace PixiEditor.Models.ImageManipulation
             }
             int lastCheckedPixelRight = fillXRight - 1;
 
-            int relativeY = coords.Y - layer.OffsetY;
+            int relativeY = coords.Y;
             LineTool.CalculateBresenhamLine(new Coordinates(lastCheckedPixelLeft, relativeY), new Coordinates(lastCheckedPixelRight, relativeY), output);
             dirtyRect = dirtyRect.Expand(new Int32Rect(lastCheckedPixelLeft, coords.Y, lastCheckedPixelRight - lastCheckedPixelLeft + 1, 1));
 

+ 1 - 0
PixiEditor/Models/Tools/Tools/MagicWandTool.cs

@@ -55,6 +55,7 @@ namespace PixiEditor.Models.Tools.Tools
 
             Selection selection = BitmapManager.ActiveDocument.ActiveSelection;
 
+
             newSelection.Clear();
 
             ToolCalculator.GetLinearFillAbsolute(