Browse Source

* Fix bug #35127 in CheckRectClipping, patch from Ondrej Pokorny

git-svn-id: trunk@41546 -
michael 6 years ago
parent
commit
b7ce4406d8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-image/src/clipping.pp

+ 1 - 1
packages/fcl-image/src/clipping.pp

@@ -87,7 +87,7 @@ begin
       y1 := top;
       y1 := top;
     if ( y2 > bottom ) then // bottom side needs to be clipped
     if ( y2 > bottom ) then // bottom side needs to be clipped
       y2 := bottom;
       y2 := bottom;
-    if (x1 > x2) or (y1 < y2) then
+    if (x1 > x2) or (y1 > y2) then
       ClearRect;
       ClearRect;
     end;
     end;
 end;
 end;