You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ac...@apache.org on 2010/08/15 18:37:00 UTC

svn commit: r985703 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/FontManagerConfigurator.java

Author: acumiskey
Date: Sun Aug 15 16:36:59 2010
New Revision: 985703

URL: http://svn.apache.org/viewvc?rev=985703&view=rev
Log:
FIX: The cache-file setting should still be set even if use-cache setting is not provided (as it defaults to true).

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/FontManagerConfigurator.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/FontManagerConfigurator.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/FontManagerConfigurator.java?rev=985703&r1=985702&r2=985703&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/FontManagerConfigurator.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/FontManagerConfigurator.java Sun Aug 15 16:36:59 2010
@@ -63,11 +63,15 @@ public class FontManagerConfigurator {
         if (cfg.getChild("use-cache", false) != null) {
             try {
                 fontManager.setUseCache(cfg.getChild("use-cache").getValueAsBoolean());
-                if (cfg.getChild("cache-file", false) != null) {
-                    fontManager.setCacheFile(new File(cfg.getChild("cache-file").getValue()));
-                }
-            } catch (ConfigurationException mfue) {
-                LogUtil.handleException(log, mfue, true);
+            } catch (ConfigurationException e) {
+                LogUtil.handleException(log, e, true);
+            }
+        }
+        if (cfg.getChild("cache-file", false) != null) {
+            try {
+                fontManager.setCacheFile(new File(cfg.getChild("cache-file").getValue()));
+            } catch (ConfigurationException e) {
+                LogUtil.handleException(log, e, true);
             }
         }
         if (cfg.getChild("font-base", false) != null) {



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