diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-08-24 13:43:00 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-08-24 13:43:00 +0000 |
commit | bdda3117d3b3c95fb471587d592c5afd28cb3bec (patch) | |
tree | eb47cbb864bfb4fce1dc086ab4be54d284456723 /src/java-1.4/org/apache/fop | |
parent | 668a2f4d33da6e126ea7909a10cb284c537d91f7 (diff) | |
download | xmlgraphics-fop-bdda3117d3b3c95fb471587d592c5afd28cb3bec.tar.gz xmlgraphics-fop-bdda3117d3b3c95fb471587d592c5afd28cb3bec.zip |
Fixes unrecoverable exceptions causing BatchDiffer to fail.
Doing a clean separation of encoded and decoded data inside the image implementations. Helps fix a problem with the encoded CCITT TIFF being sent to the PS output even though this is not yet implemented.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@239661 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java-1.4/org/apache/fop')
-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]; |