瀏覽代碼

Fix a small bug in the flood fill change validator

Equbuxu 3 年之前
父節點
當前提交
f9fc607055
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/PixiEditor.ChangeableDocument/Changes/Drawing/FloodFill/FloodFill_Change.cs

+ 1 - 1
src/PixiEditor.ChangeableDocument/Changes/Drawing/FloodFill/FloodFill_Change.cs

@@ -25,7 +25,7 @@ internal class FloodFill_Change : Change
 
     public override bool InitializeAndValidate(Document target)
     {
-        if (pos.X < 0 || pos.Y < 0 || pos.X >= target.Size.X || pos.Y >= target.Size.X)
+        if (pos.X < 0 || pos.Y < 0 || pos.X >= target.Size.X || pos.Y >= target.Size.Y)
             return false;
         
         return DrawingChangeHelper.IsValidForDrawing(target, memberGuid, drawOnMask);