]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Calculating the resolution value instead of writing down the constant is more readabl...
authorJeremias Maerki <jeremias@apache.org>
Sat, 11 Sep 2004 17:10:46 +0000 (17:10 +0000)
committerJeremias Maerki <jeremias@apache.org>
Sat, 11 Sep 2004 17:10:46 +0000 (17:10 +0000)
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

index c1ae3d3afdec022737dd1c8b7b7f914dc9fc1ae2..25e35eb9f38bcf6b8619b138adb82fa342e6fb96 100644 (file)
@@ -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;