aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2006-03-18 20:30:47 +0000
committerJeremias Maerki <jeremias@apache.org>2006-03-18 20:30:47 +0000
commitb5e92d63fede78c3119295825d15d6c51729353f (patch)
tree48a55075f94548de5d01f4b783643bf688d00b93 /src
parent148095dd2eb3b68a27f0d76a13beff79cc8b4336 (diff)
downloadxmlgraphics-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.java3
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);