Fix for NPE with PNG images for RTF output.
Submitted by: Dominic Brügger <bruegger.at.puzzle.ch>
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@503326
13f79535-47bb-0310-9956-
ffa450edef68
* @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;
<changes>
<release version="FOP Trunk">
+ <action context="Code" dev="JM" type="fix" fixes-bug="41488" due-to="Dominic Brügger">
+ Fix for NPE with PNG images for RTF output.
+ </action>
<action context="Code" dev="JM" type="add">
Support for soft masks (transparency) with ImageIO image adapter.
</action>