aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/image/FopImageConsumer.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/fop/image/FopImageConsumer.java')
-rw-r--r--src/org/apache/fop/image/FopImageConsumer.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/org/apache/fop/image/FopImageConsumer.java b/src/org/apache/fop/image/FopImageConsumer.java
index 79f326daf..0ad27cc7a 100644
--- a/src/org/apache/fop/image/FopImageConsumer.java
+++ b/src/org/apache/fop/image/FopImageConsumer.java
@@ -56,7 +56,8 @@ public class FopImageConsumer implements ImageConsumer {
*/
synchronized (this.imageStatus) {
// Need to stop status if image done
- if (this.imageStatus.intValue() != ImageConsumer.STATICIMAGEDONE)
+ if (imageStatus.intValue() != ImageConsumer.STATICIMAGEDONE
+ && imageStatus.intValue() != ImageConsumer.SINGLEFRAMEDONE)
this.imageStatus = new Integer(status);
}
}
@@ -95,7 +96,8 @@ public class FopImageConsumer implements ImageConsumer {
if (this.imageStatus.intValue() == ImageConsumer.IMAGEERROR)
throw new Exception("Image error");
- if (this.imageStatus.intValue() == ImageConsumer.STATICIMAGEDONE)
+ if (imageStatus.intValue() == ImageConsumer.STATICIMAGEDONE
+ || imageStatus.intValue() == ImageConsumer.SINGLEFRAMEDONE)
return true;
return false;