diff options
author | Jeremias Maerki <jeremias@apache.org> | 2006-03-18 20:30:47 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2006-03-18 20:30:47 +0000 |
commit | b5e92d63fede78c3119295825d15d6c51729353f (patch) | |
tree | 48a55075f94548de5d01f4b783643bf688d00b93 /src | |
parent | 148095dd2eb3b68a27f0d76a13beff79cc8b4336 (diff) | |
download | xmlgraphics-fop-b5e92d63fede78c3119295825d15d6c51729353f.tar.gz xmlgraphics-fop-b5e92d63fede78c3119295825d15d6c51729353f.zip |
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.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@386880 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/java-1.4/org/apache/fop/image/ImageIOImage.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/java-1.4/org/apache/fop/image/ImageIOImage.java b/src/java-1.4/org/apache/fop/image/ImageIOImage.java index 3dddc05ad..8337a7413 100644 --- a/src/java-1.4/org/apache/fop/image/ImageIOImage.java +++ b/src/java-1.4/org/apache/fop/image/ImageIOImage.java @@ -56,6 +56,9 @@ public class ImageIOImage extends AbstractFopImage { /** @see org.apache.fop.image.AbstractFopImage#loadBitmap() */ protected boolean loadBitmap() { + if (this.bitmaps != null) { + return true; + } try { inputStream.reset(); BufferedImage imageData = ImageIO.read(inputStream); |