Ver Fonte

* change trect.contains(tpoint) to not have bottom and right borders inclusive.
Mantis #32861. trect.contains(trect) still pending

git-svn-id: trunk@37773 -

marco há 7 anos atrás
pai
commit
615b50fadf
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      rtl/inc/typshrd.inc

+ 1 - 1
rtl/inc/typshrd.inc

@@ -284,7 +284,7 @@ end;
 
 function TRect.Contains(Pt: TPoint): Boolean;
 begin
-  Result := (Left <= Pt.X) and (Pt.X <= Right) and (Top <= Pt.Y) and (Pt.Y <= Bottom);
+  Result := (Left <= Pt.X) and (Pt.X < Right) and (Top <= Pt.Y) and (Pt.Y < Bottom);
 end;
 
 function TRect.Contains(R: TRect): Boolean;