diff options
-rw-r--r-- | src/org/apache/fop/fo/FOUserAgent.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/org/apache/fop/fo/FOUserAgent.java b/src/org/apache/fop/fo/FOUserAgent.java index 5242a3470..ab4424270 100644 --- a/src/org/apache/fop/fo/FOUserAgent.java +++ b/src/org/apache/fop/fo/FOUserAgent.java @@ -81,7 +81,11 @@ public class FOUserAgent implements LogEnabled { * @return the base URL */ public String getBaseURL() { - return this.baseURL; + if ((this.baseURL == null) || (this.baseURL.trim().equals(""))) { + return "file:."; + } else { + return this.baseURL; + } } /** |