From fad0f16320a9e17bca036d8d2d0f472d0828cd79 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Sat, 11 Sep 2004 17:10:46 +0000 Subject: [PATCH] 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 --- src/java/org/apache/fop/apps/FOUserAgent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5