diff options
author | Michael Vrhel <michael.vrhel@artifex.com> | 2010-11-05 22:12:05 +0000 |
---|---|---|
committer | Michael Vrhel <michael.vrhel@artifex.com> | 2010-11-05 22:12:05 +0000 |
commit | a77abaab9e55a30ca60202d6bbd25eeb33bc9853 (patch) | |
tree | 8d246425b9d414b64ba6d6e88c0626c15be7dfe2 /gs/base/gxblend1.c | |
parent | b2713bdce89fd702bfdc5971c78261cb72b9cdff (diff) | |
download | ghostpdl-a77abaab9e55a30ca60202d6bbd25eeb33bc9853.tar.gz |
Fix so that when compositing with tags, the tos tag data has no effect on the nos tag data if the pixel alpha value is 0. Fixes Bug 691752.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11889 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/base/gxblend1.c')
-rw-r--r-- | gs/base/gxblend1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gs/base/gxblend1.c b/gs/base/gxblend1.c index 4b5859073..7d6d9cace 100644 --- a/gs/base/gxblend1.c +++ b/gs/base/gxblend1.c @@ -353,7 +353,8 @@ pdf14_compose_group(pdf14_buf *tos, pdf14_buf *nos, pdf14_buf *maskbuf, if (tos_has_tag) { if (pix_alpha == 255) { nos_ptr[x + nos_tag_offset] = tos_ptr[x + tos_tag_offset]; - } else if (tos_ptr[x + tos_tag_offset] != GS_UNTOUCHED_TAG) { + } else if (pix_alpha != 0 && tos_ptr[x + tos_tag_offset] != + GS_UNTOUCHED_TAG) { nos_ptr[x + nos_tag_offset] = (nos_ptr[x + nos_tag_offset] | tos_ptr[x + tos_tag_offset]) & |