From: Jeremias Maerki Date: Sat, 11 Sep 2004 17:10:46 +0000 (+0000) Subject: Calculating the resolution value instead of writing down the constant is more readabl... X-Git-Tag: Root_Temp_KnuthStylePageBreaking~553 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fad0f16320a9e17bca036d8d2d0f472d0828cd79;p=xmlgraphics-fop.git 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 --- 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;