git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1590916 13f79535-47bb-0310-9956-ffa450edef68tags/fop-2_0
@@ -229,7 +229,8 @@ public abstract class AbstractBitmapDocumentHandler extends AbstractBinaryWritin | |||
} | |||
//Set up bitmap to paint on | |||
if (currentImage == null || currentImage.getWidth() != bitmapWidth || currentImage.getHeight() != bitmapHeight) { | |||
if (currentImage == null || currentImage.getWidth() != bitmapWidth | |||
|| currentImage.getHeight() != bitmapHeight) { | |||
currentImage = createBufferedImage(bitmapWidth, bitmapHeight); | |||
} | |||
Graphics2D graphics2D = this.currentImage.createGraphics(); |