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 ad...@apache.org on 2008/05/12 17:34:49 UTC
svn commit: r655531 -
/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java
Author: adelmelle
Date: Mon May 12 08:34:49 2008
New Revision: 655531
URL: http://svn.apache.org/viewvc?rev=655531&view=rev
Log:
Avoid an error if unspecified...
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java?rev=655531&r1=655530&r2=655531&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java Mon May 12 08:34:49 2008
@@ -357,8 +357,9 @@
}
/* 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();
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org