aboutsummaryrefslogtreecommitdiffstats
path: root/src/java-1.4
diff options
context:
space:
mode:
Diffstat (limited to 'src/java-1.4')
-rw-r--r--src/java-1.4/org/apache/fop/image/ImageIOImage.java11
1 files changed, 6 insertions, 5 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 1af4f0b9a..7ec6b9004 100644
--- a/src/java-1.4/org/apache/fop/image/ImageIOImage.java
+++ b/src/java-1.4/org/apache/fop/image/ImageIOImage.java
@@ -64,10 +64,7 @@ public class ImageIOImage extends AbstractFopImage {
* @see org.apache.fop.image.AbstractFopImage#loadDimensions()
*/
protected boolean loadDimensions() {
- if ((this.width > 0) && (this.height > 0)) {
- return true;
- }
- else if (this.bitmaps == null) {
+ if (this.bitmaps == null) {
return loadBitmap();
}
return true;
@@ -211,7 +208,11 @@ public class ImageIOImage extends AbstractFopImage {
/** @see org.apache.fop.image.AbstractFopImage#loadOriginalData() */
protected boolean loadOriginalData() {
- return loadDefaultOriginalData();
+ if (inputStream == null && getBitmaps() != null) {
+ return false;
+ } else {
+ return loadDefaultOriginalData();
+ }
}
/** @see org.apache.fop.image.FopImage#hasSoftMask() */