aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorAndreas L. Delmelle <adelmelle@apache.org>2008-05-12 15:34:49 +0000
committerAndreas L. Delmelle <adelmelle@apache.org>2008-05-12 15:34:49 +0000
commit5628bad5f30397f9ec328c43f4009b4ca7044f62 (patch)
tree66ffdeb1c4fd7c46f38da9eee2f232a59311240e /src/java
parent3a673b30d2500d848fb1c2bfdd74c9b686484f92 (diff)
downloadxmlgraphics-fop-5628bad5f30397f9ec328c43f4009b4ca7044f62.tar.gz
xmlgraphics-fop-5628bad5f30397f9ec328c43f4009b4ca7044f62.zip
Avoid an error if unspecified...
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@655531 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rwxr-xr-xsrc/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java b/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java
index 2a3c880d0..35913ce3a 100755
--- a/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java
+++ b/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java
@@ -357,8 +357,9 @@ public class CommonBorderPaddingBackground {
}
/* for non-cached, or not-yet-cached instances, preload the image */
- if (cachedInstance == null
- || (cachedInstance == newInstance)) {
+ if ((cachedInstance == null
+ || cachedInstance == newInstance)
+ && !("".equals(newInstance.backgroundImage))) {
//Additional processing: preload image
String uri = URISpecification.getURL(newInstance.backgroundImage);
FOUserAgent userAgent = pList.getFObj().getUserAgent();