lcl: use already defined operator for TFloatPoint -> TPoint conversion

git-svn-id: trunk@18849 -
This commit is contained in:
paul 2009-03-01 03:30:58 +00:00
parent 130c399660
commit 98806cae90

View File

@ -489,11 +489,11 @@ var
var
P : TPoint;
begin
P.X := RoundToInt(Point.X);
P.Y := RoundToInt(Point.Y);
If (Pt.X <> P.X) or (Pt.Y <> P.Y) then begin
P := Point;
if (Pt.X <> P.X) or (Pt.Y <> P.Y) then
begin
Inc(Count);
ReallocMem(Points,SizeOf(TPoint)*Count);
ReallocMem(Points, SizeOf(TPoint) * Count);
Points[Count - 1] := P;
Pt := P;
end;