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: [email protected]
For additional commands, e-mail: [email protected]