Browse Source

* 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 7 years ago
parent
commit
615b50fadf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/inc/typshrd.inc

+ 1 - 1
rtl/inc/typshrd.inc

@@ -284,7 +284,7 @@ end;
 
 
 function TRect.Contains(Pt: TPoint): Boolean;
 function TRect.Contains(Pt: TPoint): Boolean;
 begin
 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;
 end;
 
 
 function TRect.Contains(R: TRect): Boolean;
 function TRect.Contains(R: TRect): Boolean;