summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/java/org/apache/fop/afp/AFPResourceInfo.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/afp/AFPResourceInfo.java b/src/java/org/apache/fop/afp/AFPResourceInfo.java
index d668a82af..b70207b44 100644
--- a/src/java/org/apache/fop/afp/AFPResourceInfo.java
+++ b/src/java/org/apache/fop/afp/AFPResourceInfo.java
@@ -159,7 +159,7 @@ public class AFPResourceInfo {
AFPResourceInfo ri = (AFPResourceInfo)obj;
return (uri != null && uri.equals(ri.uri))
- && (imageDimension != null && imageDimension.equals(ri.imageDimension))
+ && (imageDimension == ri.imageDimension || imageDimension != null && imageDimension.equals(ri.imageDimension))
&& (name != null && name.equals(ri.name))
&& (level != null && level.equals(ri.level));
}