[poppler] test/test-gen: image.inc,1.1,1.2
Jeff Muizelaar
jrmuizel at freedesktop.org
Tue Jan 3 15:35:09 PST 2006
Update of /cvs/poppler/test/test-gen
In directory gabe:/tmp/cvs-serv31006/test-gen
Modified Files:
image.inc
Log Message:
2006-01-03 Jeff Muizelaar <jeff at infidigm.net>
* test-gen/image.inc:
* tests/mask.pdf: change image.inc to read height*(width+7)/8 bytes so
that we read the right amount when width is not a multiple of 8. This
fixes viewing mask.pdf in acroreader.
Index: image.inc
===================================================================
RCS file: /cvs/poppler/test/test-gen/image.inc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- image.inc 21 May 2005 02:51:15 -0000 1.1
+++ image.inc 3 Jan 2006 23:35:07 -0000 1.2
@@ -53,7 +53,7 @@
($t,$w,$h)=($buf=~/^(P\d+)\s+(\d+)\s+(\d+)\s+/);
$bpc=1;
$s=0;
- for($line=($w*$h/8);$line>0;$line--) {
+ for($line=(($w+7)*$h/8);$line>0;$line--) {
read(INF,$buf,1);
push(@img,$buf);
}
More information about the poppler
mailing list