summaryrefslogtreecommitdiff
path: root/pdf/pdf_interpret.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-02-01 11:01:24 +0000
committerRobin Watts <robin.watts@artifex.com>2012-02-01 11:01:24 +0000
commitd36ddbb53507e45a04ef68b82e77bc224149ae4a (patch)
tree438a2ac79149a68c65ea8f6f238434596da22b86 /pdf/pdf_interpret.c
parent3e65ed4eb3a8aa8cd6375a7029ac3b61a35a1157 (diff)
downloadmupdf-d36ddbb53507e45a04ef68b82e77bc224149ae4a.tar.xz
Tweak to previous pdf_decode_cmap fix.
More aesthetically pleasing version.
Diffstat (limited to 'pdf/pdf_interpret.c')
-rw-r--r--pdf/pdf_interpret.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf/pdf_interpret.c b/pdf/pdf_interpret.c
index 63f208a1..812e38fb 100644
--- a/pdf/pdf_interpret.c
+++ b/pdf/pdf_interpret.c
@@ -816,8 +816,8 @@ pdf_show_string(pdf_csi *csi, unsigned char *buf, int len)
while (buf < end)
{
- int w;
- buf = pdf_decode_cmap(fontdesc->encoding, buf, &cpt, &w);
+ int w = pdf_decode_cmap(fontdesc->encoding, buf, &cpt);
+ buf += w;
cid = pdf_lookup_cmap(fontdesc->encoding, cpt);
if (cid >= 0)
pdf_show_char(csi, cid);