mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-31 08:10:31 +02:00
* Fix issue ID #38900: union wrongly implemented
git-svn-id: trunk@49376 -
This commit is contained in:
parent
83253676a3
commit
59d4aaf5ec
@ -686,6 +686,7 @@ begin
|
||||
Result.x := apt.X;
|
||||
Result.y := apt.Y;
|
||||
end;
|
||||
|
||||
{ TRectF }
|
||||
|
||||
function TRectF.GetHeight: Single;
|
||||
@ -712,8 +713,8 @@ function TRectF.Union(const r: TRectF): TRectF;
|
||||
begin
|
||||
result.left:=min(r.left,left);
|
||||
result.top:=min(r.top,top);
|
||||
result.right:=min(r.right,right);
|
||||
result.bottom:=min(r.bottom,bottom);
|
||||
result.right:=max(r.right,right);
|
||||
result.bottom:=max(r.bottom,bottom);
|
||||
end;
|
||||
|
||||
procedure TRectF.Offset(const dx, dy: Single);
|
||||
|
Loading…
Reference in New Issue
Block a user