diff options
author | Keiron Liddle <keiron@apache.org> | 2001-11-22 07:42:05 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2001-11-22 07:42:05 +0000 |
commit | ec362b3cec7c6e00598facbe0d3cd5446f723cc9 (patch) | |
tree | 59e1e1d782bf5f93c1877584616018ba8a9bd46e | |
parent | 110d112e4941cb917a3dff07e70e71be943d6738 (diff) | |
download | xmlgraphics-fop-ec362b3cec7c6e00598facbe0d3cd5446f723cc9.tar.gz xmlgraphics-fop-ec362b3cec7c6e00598facbe0d3cd5446f723cc9.zip |
fix to prevent fop hanging with animated gifs
Submitted by: "Beer, Christian" <BEE@DIRON.de>
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194576 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/org/apache/fop/image/FopImageConsumer.java | 6 |
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; |