Browse Source

* Fix use of formatfloat

git-svn-id: trunk@33264 -
michael 9 years ago
parent
commit
be3aa9d6c2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-pdf/src/fppdf.pp

+ 1 - 1
packages/fcl-pdf/src/fppdf.pp

@@ -1919,7 +1919,7 @@ end;
 
 
 class function TPDFObject.FloatStr(F: TPDFFloat): String;
 class function TPDFObject.FloatStr(F: TPDFFloat): String;
 begin
 begin
-  Result:=FormatFloat('0.##',F);
+  Str(F:5:2,Result);
 end;
 end;
 
 
 procedure TPDFObject.Write(const AStream: TStream);
 procedure TPDFObject.Write(const AStream: TStream);