summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-01-28 20:06:34 +0000
committerRobin Watts <robin.watts@artifex.com>2016-01-28 20:09:48 +0000
commit80ef70399639e4203b5d5f50e130a30aba221655 (patch)
treef53cc9c511885ac9264f4c7bb42a7534de0d2e91
parent3116d629d72ff7bf227a46601d97db8d283c0650 (diff)
downloadmupdf-80ef70399639e4203b5d5f50e130a30aba221655.tar.xz
MSVC: Fix trace device output
MSVC doesn't understand %04X. Use %04x instead.
-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 8b2190dc..9f0acca3 100644
--- a/source/fitz/trace-device.c
+++ b/source/fitz/trace-device.c
@@ -43,7 +43,7 @@ fz_trace_text_span(fz_context *ctx, fz_output *out, fz_text_span *span)
fz_printf(ctx, out, "<g ucs=\"%c\" gid=\"%d\" x=\"%g\" y=\"%g\" />\n",
span->items[i].ucs, span->items[i].gid, span->items[i].x, span->items[i].y);
else
- fz_printf(ctx, out, "<g ucs=\"U+%04X\" gid=\"%d\" x=\"%g\" y=\"%g\" />\n",
+ fz_printf(ctx, out, "<g ucs=\"U+%04x\" gid=\"%d\" x=\"%g\" y=\"%g\" />\n",
span->items[i].ucs, span->items[i].gid, span->items[i].x, span->items[i].y);
}
fz_printf(ctx, out, "</span>\n");