mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 17:00:46 +02:00
lcl: use already defined operator for TFloatPoint -> TPoint conversion
git-svn-id: trunk@18849 -
This commit is contained in:
parent
130c399660
commit
98806cae90
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user