diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-02-01 11:01:24 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-02-01 11:01:24 +0000 |
commit | d36ddbb53507e45a04ef68b82e77bc224149ae4a (patch) | |
tree | 438a2ac79149a68c65ea8f6f238434596da22b86 /pdf/pdf_interpret.c | |
parent | 3e65ed4eb3a8aa8cd6375a7029ac3b61a35a1157 (diff) | |
download | mupdf-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.c | 4 |
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); |