summaryrefslogtreecommitdiff
path: root/source/tools/mudraw.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/tools/mudraw.c')
-rw-r--r--source/tools/mudraw.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c
index 6382e95c..d3cef7a2 100644
--- a/source/tools/mudraw.c
+++ b/source/tools/mudraw.c
@@ -1042,6 +1042,13 @@ static void drawpage(fz_context *ctx, fz_document *doc, int pagenum)
for (i = 0; i < n; i++)
fz_set_separation_behavior(ctx, seps, i, FZ_SEPARATION_COMPOSITE);
}
+ else
+ {
+ /* If we are doing spot rendering (or overprint simulation)
+ * then we need (at least) an empty sep object to force the
+ * overprint simulation in the draw device. */
+ seps = fz_new_separations(ctx, 0);
+ }
}
fz_catch(ctx)
{