diff options
Diffstat (limited to 'src/java-1.4/org/apache/fop/image/ImageIOImage.java')
-rw-r--r-- | src/java-1.4/org/apache/fop/image/ImageIOImage.java | 3 |
1 files changed, 1 insertions, 2 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 56bb863b7..111011918 100644 --- a/src/java-1.4/org/apache/fop/image/ImageIOImage.java +++ b/src/java-1.4/org/apache/fop/image/ImageIOImage.java @@ -127,8 +127,7 @@ public class ImageIOImage extends AbstractFopImage { } // Should take care of the ColorSpace and bitsPerPixel - this.bitmapsSize = this.width * this.height * 3; - this.bitmaps = new byte[this.bitmapsSize]; + this.bitmaps = new byte[this.width * this.height * 3]; for (int i = 0; i < this.height; i++) { for (int j = 0; j < this.width; j++) { int p = tmpMap[i * this.width + j]; |