TRectF.Union is incorrect
Original Reporter info from Mantis: svofski
-
Reporter name: Viacheslav Slavinsky
Original Reporter info from Mantis: svofski
- Reporter name: Viacheslav Slavinsky
Description:
Union of two rectangles should take min of two TopLeft corners and max of two BottomRight corners.
TRectF.Union is currently defined as follows:
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); // this should be max
result.bottom:=min(r.bottom,bottom); // this should be max
end;
Steps to reproduce:
There are no steps required to reproduce this.
Mantis conversion info:
- Mantis ID: 38900
- Version: 3.2.1
- Fixed in version: 3.3.1
- Fixed in revision: 49376 (#59d4aaf5)
- Target version: 4.0.0