From ec362b3cec7c6e00598facbe0d3cd5446f723cc9 Mon Sep 17 00:00:00 2001 From: Keiron Liddle Date: Thu, 22 Nov 2001 07:42:05 +0000 Subject: [PATCH] fix to prevent fop hanging with animated gifs Submitted by: "Beer, Christian" git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194576 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/image/FopImageConsumer.java | 6 ++++-- 1 file 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; -- 2.39.5