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 ke...@apache.org on 2001/11/22 08:42:05 UTC
cvs commit: xml-fop/src/org/apache/fop/image FopImageConsumer.java
keiron 01/11/21 23:42:05
Modified: src/org/apache/fop/image FopImageConsumer.java
Log:
fix to prevent fop hanging with animated gifs
Submitted by: "Beer, Christian" <BE...@DIRON.de>
Revision Changes Path
1.5 +5 -3 xml-fop/src/org/apache/fop/image/FopImageConsumer.java
Index: FopImageConsumer.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/image/FopImageConsumer.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- FopImageConsumer.java 2001/11/22 07:11:40 1.4
+++ FopImageConsumer.java 2001/11/22 07:42:05 1.5
@@ -1,5 +1,5 @@
/*
- * $Id: FopImageConsumer.java,v 1.4 2001/11/22 07:11:40 keiron Exp $
+ * $Id: FopImageConsumer.java,v 1.5 2001/11/22 07:42:05 keiron Exp $
* Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
* For details on use and redistribution please refer to the
* LICENSE file included with these sources.
@@ -56,7 +56,8 @@
*/
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 @@
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;
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org