lcl: use math round when converting TFloatPoint to TPoint (issue #0013259)

git-svn-id: trunk@18862 -
This commit is contained in:
paul 2009-03-02 02:33:31 +00:00
parent c4611a0b7a
commit d45af9b5b8

View File

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