xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r585167 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/render/PrintRendererConfigurator.java
Date Tue, 16 Oct 2007 15:12:50 GMT
Author: jeremias
Date: Tue Oct 16 08:12:45 2007
New Revision: 585167

URL: http://svn.apache.org/viewvc?rev=585167&view=rev
Log:
Bugfix: If auto-detection is enabled, auto-detection didn't get done starting with the second
rendering run in the same JVM. Static variables are dangerous!

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/render/PrintRendererConfigurator.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/PrintRendererConfigurator.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/PrintRendererConfigurator.java?rev=585167&r1=585166&r2=585167&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/PrintRendererConfigurator.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/PrintRendererConfigurator.java Tue
Oct 16 08:12:45 2007
@@ -53,9 +53,6 @@
 public class PrintRendererConfigurator extends AbstractRendererConfigurator 
             implements RendererConfigurator {
 
-    /** have we already autodetected system fonts? */
-    private static boolean autodetectedFonts = false;
-
     /** logger instance */
     protected static Log log = LogFactory.getLog(PrintRendererConfigurator.class);
 
@@ -126,7 +123,7 @@
             
             // native o/s search (autodetect) configuration
             boolean autodetectFonts = (fonts.getChild("auto-detect", false) != null);
-            if (!autodetectedFonts && autodetectFonts) {
+            if (autodetectFonts) {
                 // search in font base if it is defined and
                 // is a directory but don't recurse
                 FontFileFinder fontFileFinder = new FontFileFinder();
@@ -158,7 +155,6 @@
                 } catch (IOException e) {
                     LogUtil.handleException(log, e, strict);
                 }
-                autodetectedFonts = true;
             }
 
             // directory (multiple font) configuration



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


Mime
View raw message