View Issue Details

IDProjectCategoryView StatusLast Update
0038900FPCRTLpublic2021-05-17 14:56
ReporterViacheslav Slavinsky Assigned ToMichael Van Canneyt  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.2.1 
Fixed in Version3.3.1 
Summary0038900: TRectF.Union is incorrect
DescriptionUnion 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 ReproduceThere are no steps required to reproduce this.
TagsNo tags attached.
Fixed in Revision49376
FPCOldBugId
FPCTarget4.0.0
Attached Files

Activities

Michael Van Canneyt

2021-05-17 14:56

administrator   ~0130930

Fixed, thanks for reporting !

Issue History

Date Modified Username Field Change
2021-05-17 14:32 Viacheslav Slavinsky New Issue
2021-05-17 14:56 Michael Van Canneyt Assigned To => Michael Van Canneyt
2021-05-17 14:56 Michael Van Canneyt Status new => resolved
2021-05-17 14:56 Michael Van Canneyt Resolution open => fixed
2021-05-17 14:56 Michael Van Canneyt Fixed in Version => 3.3.1
2021-05-17 14:56 Michael Van Canneyt Fixed in Revision => 49376
2021-05-17 14:56 Michael Van Canneyt FPCTarget => 4.0.0
2021-05-17 14:56 Michael Van Canneyt Note Added: 0130930