浏览代码

* fix for mantis 38889, swap bottom and rect in pointinside

git-svn-id: trunk@49373 -
marco 4 年之前
父节点
当前提交
a714cfafb8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/fcl-image/src/clipping.pp

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

@@ -57,7 +57,7 @@ begin
   SortRect (bounds);
   SortRect (bounds);
   with Bounds do
   with Bounds do
     result := (x >= left) and (x <= right) and
     result := (x >= left) and (x <= right) and
-              (y >= bottom) and (y <= top);
+              (y >= top) and (y <= bottom);
 end;
 end;
 
 
 Function CheckRectClipping (ClipRect:TRect; var Rect:Trect) : Boolean;
 Function CheckRectClipping (ClipRect:TRect; var Rect:Trect) : Boolean;