From b58b05fe601458de72b35c336590c9def6602081 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 8 Nov 2018 13:00:50 +0100 Subject: Fix 699352: Call begin_layer for all marked content in PDF. Since we call end_layer without distinction, we should also call begin_layer the same way. Also change the XML to emit separate tags for beginning and ending a layer, since there is no guarantee the layer calls will be neatly nested with clipping pushes and pops; nor is there a guarantee that the PDF will even balance the BMC/BDC and EMC operators. --- source/fitz/trace-device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/fitz/trace-device.c') diff --git a/source/fitz/trace-device.c b/source/fitz/trace-device.c index 1d94412b..f3e7edee 100644 --- a/source/fitz/trace-device.c +++ b/source/fitz/trace-device.c @@ -351,14 +351,14 @@ static void fz_trace_begin_layer(fz_context *ctx, fz_device *dev, const char *name) { fz_output *out = ((fz_trace_device*)dev)->out; - fz_write_printf(ctx, out, "\n", name); + fz_write_printf(ctx, out, "\n", name); } static void fz_trace_end_layer(fz_context *ctx, fz_device *dev) { fz_output *out = ((fz_trace_device*)dev)->out; - fz_write_printf(ctx, out, "\n"); + fz_write_printf(ctx, out, "\n"); } fz_device *fz_new_trace_device(fz_context *ctx, fz_output *out) -- cgit v1.2.3