summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-cmap-load.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2014-05-22 12:54:50 +0200
committerTor Andersson <tor.andersson@artifex.com>2014-05-22 13:22:11 +0200
commit2191d24236c6e2283521a4013dbca2b4feb6c6e7 (patch)
tree3cb66c9eb0344d50f1a2b647b4f17f19e229c205 /source/pdf/pdf-cmap-load.c
parent56101c6506a5661dd2feb2af010131c433d2553d (diff)
downloadmupdf-2191d24236c6e2283521a4013dbca2b4feb6c6e7.tar.xz
Load the usecmap directives recursively for builtin CMaps.
Fixes bug introduced in commit 1679c1e7a89ae62260fd84ce55c6bef376c6e6ba: Optimize UniXXX CMap files.
Diffstat (limited to 'source/pdf/pdf-cmap-load.c')
-rw-r--r--source/pdf/pdf-cmap-load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-cmap-load.c b/source/pdf/pdf-cmap-load.c
index ec27eddd..2e431215 100644
--- a/source/pdf/pdf-cmap-load.c
+++ b/source/pdf/pdf-cmap-load.c
@@ -135,7 +135,7 @@ pdf_load_system_cmap(fz_context *ctx, char *cmap_name)
if (cmap->usecmap_name[0] && !cmap->usecmap)
{
- usecmap = pdf_load_builtin_cmap(ctx, cmap->usecmap_name);
+ usecmap = pdf_load_system_cmap(ctx, cmap->usecmap_name);
if (!usecmap)
fz_throw(ctx, FZ_ERROR_GENERIC, "no builtin cmap file: %s", cmap->usecmap_name);
pdf_set_usecmap(ctx, cmap, usecmap);