diff options
author | Han The Thanh <hanthethanh@gmail.com> | 2011-03-01 01:43:47 +0000 |
---|---|---|
committer | Han The Thanh <hanthethanh@gmail.com> | 2011-03-01 01:43:47 +0000 |
commit | 6dcd44939d4765af4a24a7969f1fef796b6c0b15 (patch) | |
tree | a888c1d2336a88543f76d126ba8966c4d76a71b4 /Build/source/texk/web2c/pdftexdir/writepng.c | |
parent | 81af3bd308254a1148792ac692106f2aa8d1a46d (diff) |
fix for page group (bug report #4326)
git-svn-id: svn://tug.org/texlive/trunk@21555 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/pdftexdir/writepng.c')
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/writepng.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/writepng.c b/Build/source/texk/web2c/pdftexdir/writepng.c index 481d4bb6461..523396f0160 100644 --- a/Build/source/texk/web2c/pdftexdir/writepng.c +++ b/Build/source/texk/web2c/pdftexdir/writepng.c @@ -34,7 +34,7 @@ Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. #define png_rowbytes(N) png_get_rowbytes(png_ptr(N), png_info(N)) #define png_width(N) png_get_image_width(png_ptr(N), png_info(N)) -static int transparent_page_group = -1; +static int transparent_page_group = 0; void read_png_info(integer img) { @@ -106,10 +106,10 @@ void read_png_info(integer img) /* png with alpha channel in device colours; we have to add a Page * Group to make Adobe happy, so we have to create a dummy group object */ - if (transparent_page_group < 1) { + if (transparent_page_group == 0) { transparent_page_group = pdfnewobjnum(); } - if (pdfpagegroupval < 1) { + if (pdfpagegroupval == 0) { pdfpagegroupval = transparent_page_group; } img_group_ref(img) = pdfpagegroupval; @@ -510,7 +510,7 @@ static boolean transparent_page_group_was_written = false; static void write_additional_png_objects(void) { if (last_png_needs_page_group) { - if (!transparent_page_group_was_written && transparent_page_group > 1) { + if (!transparent_page_group_was_written && transparent_page_group > 0) { // create new group object transparent_page_group_was_written = true; pdfbeginobj(transparent_page_group, 2); |