mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 23:49:28 +02:00
lcl: use math round when converting TFloatPoint to TPoint (issue #0013259)
git-svn-id: trunk@18862 -
This commit is contained in:
parent
c4611a0b7a
commit
d45af9b5b8
@ -277,8 +277,8 @@ end;
|
||||
Operator := (Value : TFloatPoint) : TPoint;
|
||||
begin
|
||||
With Result do begin
|
||||
X := LCLProc.RoundToInt(Value.X);
|
||||
Y := LCLProc.RoundToInt(Value.Y);
|
||||
X := Trunc(SimpleRoundTo(Value.X, 0));
|
||||
Y := Trunc(SimpleRoundTo(Value.Y, 0));
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user