summaryrefslogtreecommitdiff
path: root/source/fitz/trace-device.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-07-13 15:28:09 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-07-21 12:17:32 +0200
commitb66925c26188075d843f7661f8d0a21eeb37ec22 (patch)
treed38f0a263501d4aa4044784f1d7e7105281f5ae2 /source/fitz/trace-device.c
parent25f6ad32704b80b7af510fe8c23ee640f3355850 (diff)
downloadmupdf-b66925c26188075d843f7661f8d0a21eeb37ec22.tar.xz
Add 'mutool trace' command.
Diffstat (limited to 'source/fitz/trace-device.c')
-rw-r--r--source/fitz/trace-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/trace-device.c b/source/fitz/trace-device.c
index 13ce7256..2b7b24aa 100644
--- a/source/fitz/trace-device.c
+++ b/source/fitz/trace-device.c
@@ -332,7 +332,7 @@ static int
fz_trace_begin_tile(fz_context *ctx, fz_device *dev, const fz_rect *area, const fz_rect *view, float xstep, float ystep, const fz_matrix *ctm, int id)
{
fz_output *out = ((fz_trace_device*)dev)->out;
- fz_write_printf(ctx, out, "<tile");
+ fz_write_printf(ctx, out, "<tile id=\"%d\"", id);
fz_write_printf(ctx, out, " area=\"%g %g %g %g\"", area->x0, area->y0, area->x1, area->y1);
fz_write_printf(ctx, out, " view=\"%g %g %g %g\"", view->x0, view->y0, view->x1, view->y1);
fz_write_printf(ctx, out, " xstep=\"%g\" ystep=\"%g\"", xstep, ystep);