mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 13:59:29 +02:00
* change trect.contains(tpoint) to not have bottom and right borders inclusive.
Mantis #32861. trect.contains(trect) still pending git-svn-id: trunk@37773 -
This commit is contained in:
parent
5e26142e54
commit
615b50fadf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user