From: Jeremias Maerki Date: Sat, 3 Feb 2007 22:31:34 +0000 (+0000) Subject: Bugzilla #41488: X-Git-Tag: fop-0_94~228 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=838b976e8a371dbec1c6d3a4780e653442aff157;p=xmlgraphics-fop.git Bugzilla #41488: Fix for NPE with PNG images for RTF output. Submitted by: Dominic Brügger git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@503326 13f79535-47bb-0310-9956-ffa450edef68 --- 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 ebb4a09eb..1af4f0b9a 100644 --- a/src/java-1.4/org/apache/fop/image/ImageIOImage.java +++ b/src/java-1.4/org/apache/fop/image/ImageIOImage.java @@ -64,7 +64,10 @@ public class ImageIOImage extends AbstractFopImage { * @see org.apache.fop.image.AbstractFopImage#loadDimensions() */ protected boolean loadDimensions() { - if (this.bitmaps == null) { + if ((this.width > 0) && (this.height > 0)) { + return true; + } + else if (this.bitmaps == null) { return loadBitmap(); } return true; diff --git a/status.xml b/status.xml index 5e11e4247..49750b3d2 100644 --- a/status.xml +++ b/status.xml @@ -28,6 +28,9 @@ + + Fix for NPE with PNG images for RTF output. + Support for soft masks (transparency) with ImageIO image adapter.