fixed compilation with fpc 2.1.1

git-svn-id: trunk@8683 -
This commit is contained in:
vincents 2006-02-01 21:22:54 +00:00
parent be772ad31a
commit 0ecb485c10

View File

@ -241,7 +241,7 @@ begin
if (not (csDesigning in ComponentState)) and (FAssociate <> nil)
then begin
if Thousands
then FAssociate.Text := FloatToStrF(FPosition, ffNumber, 0, 0)
then FAssociate.Text := FloatToStrF(Single(FPosition), ffNumber, 0, 0)
else FAssociate.Text := IntToStr(FPosition);
end;
end;