xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r386880 - /xmlgraphics/fop/trunk/src/java-1.4/org/apache/fop/image/ImageIOImage.java
Date Sat, 18 Mar 2006 20:30:49 GMT
Author: jeremias
Date: Sat Mar 18 12:30:47 2006
New Revision: 386880

URL: http://svn.apache.org/viewcvs?rev=386880&view=rev
Log:
Avoid exception when ImageIO is used as image adapter for TIFF images. The stream is already
closed and the bitmap loaded when FopPDFImages wants to write the image to the PDF.

Modified:
    xmlgraphics/fop/trunk/src/java-1.4/org/apache/fop/image/ImageIOImage.java

Modified: xmlgraphics/fop/trunk/src/java-1.4/org/apache/fop/image/ImageIOImage.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java-1.4/org/apache/fop/image/ImageIOImage.java?rev=386880&r1=386879&r2=386880&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java-1.4/org/apache/fop/image/ImageIOImage.java (original)
+++ xmlgraphics/fop/trunk/src/java-1.4/org/apache/fop/image/ImageIOImage.java Sat Mar 18 12:30:47
2006
@@ -56,6 +56,9 @@
     
     /** @see org.apache.fop.image.AbstractFopImage#loadBitmap() */
     protected boolean loadBitmap() {
+        if (this.bitmaps != null) {
+            return true;
+        }
         try {
             inputStream.reset();
             BufferedImage imageData = ImageIO.read(inputStream);



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


Mime
View raw message