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/org/apache/fop/image/GifImage.java | |
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/org/apache/fop/image/GifImage.java')
-rw-r--r-- | src/java/org/apache/fop/image/GifImage.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/image/GifImage.java b/src/java/org/apache/fop/image/GifImage.java index 20c24525b..10a3d6328 100644 --- a/src/java/org/apache/fop/image/GifImage.java +++ b/src/java/org/apache/fop/image/GifImage.java @@ -150,8 +150,7 @@ public class GifImage 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]; |