aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2004-09-11 17:10:46 +0000
committerJeremias Maerki <jeremias@apache.org>2004-09-11 17:10:46 +0000
commitfad0f16320a9e17bca036d8d2d0f472d0828cd79 (patch)
treeceeb3679819fd8818868cdf8bdf0b10f79ace701 /src
parentfb5d41bc91a5bdda3f754ffa5573558eaf4fd64c (diff)
downloadxmlgraphics-fop-fad0f16320a9e17bca036d8d2d0f472d0828cd79.tar.gz
xmlgraphics-fop-fad0f16320a9e17bca036d8d2d0f472d0828cd79.zip
Calculating the resolution value instead of writing down the constant is more readable IMO.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197938 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/apps/FOUserAgent.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/apps/FOUserAgent.java b/src/java/org/apache/fop/apps/FOUserAgent.java
index c1ae3d3af..25e35eb9f 100644
--- a/src/java/org/apache/fop/apps/FOUserAgent.java
+++ b/src/java/org/apache/fop/apps/FOUserAgent.java
@@ -66,7 +66,7 @@ public class FOUserAgent {
public Map handlers = new java.util.HashMap();
private String baseURL;
private PDFEncryptionParams pdfEncryptionParams;
- private float px2mm = 0.35277777777777777778f; //72dpi (=25.4/dpi)
+ private float px2mm = (25.4f / 72); //dpi (=25.4/dpi)
private HashMap rendererOptions = new java.util.HashMap();
private InputHandler inputHandler = null;
private Renderer rendererOverride = null;