* Fix issue ID #38900: union wrongly implemented

git-svn-id: trunk@49376 -
This commit is contained in:
michael 2021-05-17 14:56:09 +00:00
parent 83253676a3
commit 59d4aaf5ec

View File

@ -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);