aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2002-12-09 11:18:58 +0000
committerKeiron Liddle <keiron@apache.org>2002-12-09 11:18:58 +0000
commit13bb4d2e90769818733a842c2c4a10c72dedcbda (patch)
treeb5fb15c5f08f89442d2133a10ed6bd05233ea0cd /src/org/apache/fop
parent171d31663c00bcd55988a56eac90e5e454dfa012 (diff)
downloadxmlgraphics-fop-13bb4d2e90769818733a842c2c4a10c72dedcbda.tar.gz
xmlgraphics-fop-13bb4d2e90769818733a842c2c4a10c72dedcbda.zip
use more decimal places for scaling
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195752 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop')
-rw-r--r--src/org/apache/fop/render/pdf/PDFXMLHandler.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/apache/fop/render/pdf/PDFXMLHandler.java b/src/org/apache/fop/render/pdf/PDFXMLHandler.java
index 6857311d6..c55c4883a 100644
--- a/src/org/apache/fop/render/pdf/PDFXMLHandler.java
+++ b/src/org/apache/fop/render/pdf/PDFXMLHandler.java
@@ -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");
}