projects
/
mupdf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5a718d
)
Bug 702527: Cope with nonseparable nonisolated blends of alpha only groups.
author
Robin Watts
<
[email protected]
>
Wed, 2 Sep 2020 18:46:27 +0000
(19:46 +0100)
committer
Robin Watts
<
[email protected]
>
Wed, 2 Sep 2020 18:47:36 +0000
(19:47 +0100)
source/fitz/draw-blend.c
patch
|
blob
|
blame
|
history
diff --git
a/source/fitz/draw-blend.c
b/source/fitz/draw-blend.c
index 875d2a9cde9bccd8ec442dd93f2b79dbe254483c..307147447a5086b749c295524c20f7667bed8e96 100644
(file)
--- a/
source/fitz/draw-blend.c
+++ b/
source/fitz/draw-blend.c
@@
-1114,6
+1114,9
@@
fz_blend_pixmap(fz_context *ctx, fz_pixmap * FZ_RESTRICT dst, fz_pixmap * FZ_RES
dp = dst->samples + (unsigned int)((y - dst->y) * dst->stride + (x - dst->x) * dst->n);
da = dst->alpha;
+ if (n == 1)
+ sa = da = 0;
+
#ifdef PARANOID_PREMULTIPLY
if (sa)
verify_premultiply(ctx, src);