summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/fitz/draw-device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/fitz/draw-device.c b/source/fitz/draw-device.c
index 72c0ab74..bab1c5a6 100644
--- a/source/fitz/draw-device.c
+++ b/source/fitz/draw-device.c
@@ -356,6 +356,9 @@ set_op_from_spaces(fz_context *ctx, fz_overprint *op, const fz_pixmap *dest, con
if (!op)
return;
+ if (!fz_colorspace_is_subtractive(ctx, src) || !fz_colorspace_is_subtractive(ctx, dest->colorspace))
+ return;
+
sn = fz_colorspace_n(ctx, src);
dn = dest->n - dest->alpha;
dc = dn - dest->s;