]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
use more decimal places for scaling
authorKeiron Liddle <keiron@apache.org>
Mon, 9 Dec 2002 11:18:58 +0000 (11:18 +0000)
committerKeiron Liddle <keiron@apache.org>
Mon, 9 Dec 2002 11:18:58 +0000 (11:18 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195752 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/render/pdf/PDFXMLHandler.java

index 6857311d6625ec4ba07ad605afc8ecacb21d336d..c55c4883a9b8e23a425f26c1d6b7ee04c0e19e95 100644 (file)
@@ -256,10 +256,10 @@ public class PDFXMLHandler implements XMLHandler {
             if (!at.isIdentity()) {
                 double[] vals = new double[6];
                 at.getMatrix(vals);
-                pdfInfo.currentStream.add(PDFNumber.doubleOut(vals[0]) + " "
-                                + PDFNumber.doubleOut(vals[1]) + " "
-                                + PDFNumber.doubleOut(vals[2]) + " "
-                                + PDFNumber.doubleOut(vals[3]) + " "
+                pdfInfo.currentStream.add(PDFNumber.doubleOut(vals[0], 5) + " "
+                                + PDFNumber.doubleOut(vals[1], 5) + " "
+                                + PDFNumber.doubleOut(vals[2], 5) + " "
+                                + PDFNumber.doubleOut(vals[3], 5) + " "
                                 + PDFNumber.doubleOut(vals[4]) + " "
                                 + PDFNumber.doubleOut(vals[5]) + " cm\n");
             }