aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2010-06-04 09:03:57 +0000
committerJeremias Maerki <jeremias@apache.org>2010-06-04 09:03:57 +0000
commit4ee77618596ee10c97e368add8f7a883d3cf0c8a (patch)
tree1f8089d735369ff91309456dbb6809e05b6a15d7 /src/java/org
parentecdba569b1fa3e0858f5bfea7483b689591ea878 (diff)
downloadxmlgraphics-fop-4ee77618596ee10c97e368add8f7a883d3cf0c8a.tar.gz
xmlgraphics-fop-4ee77618596ee10c97e368add8f7a883d3cf0c8a.zip
Bugfix for formatting of floating point numbers which could lead to invalid PDFs.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@951333 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r--src/java/org/apache/fop/pdf/PDFNumber.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/pdf/PDFNumber.java b/src/java/org/apache/fop/pdf/PDFNumber.java
index 3c103f3f2..5bc648ced 100644
--- a/src/java/org/apache/fop/pdf/PDFNumber.java
+++ b/src/java/org/apache/fop/pdf/PDFNumber.java
@@ -88,7 +88,7 @@ public class PDFNumber extends PDFObject {
if (hasObjectNumber()) {
sb.append(getObjectID());
}
- sb.append(getNumber().toString());
+ sb.append(doubleOut(getNumber().doubleValue(), 10));
if (hasObjectNumber()) {
sb.append("\nendobj\n");
}