diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-09-21 00:11:22 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-09-21 00:11:22 +0200 |
commit | 69ed4a8f4dbfac7f2f1de925e34807e4fee3b27c (patch) | |
tree | b7f82296a259d360ce90f0826e475321d630a222 /pdf/pdf_cmap_load.c | |
parent | 99ba154018b7c4a2c47b4c7e721ffe6d9164f9f3 (diff) | |
download | mupdf-69ed4a8f4dbfac7f2f1de925e34807e4fee3b27c.tar.xz |
Don't thread ctx through safe fz_obj functions.
Diffstat (limited to 'pdf/pdf_cmap_load.c')
-rw-r--r-- | pdf/pdf_cmap_load.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pdf/pdf_cmap_load.c b/pdf/pdf_cmap_load.c index b9c2a5f4..4329ad19 100644 --- a/pdf/pdf_cmap_load.c +++ b/pdf/pdf_cmap_load.c @@ -37,17 +37,17 @@ pdf_load_embedded_cmap(pdf_cmap **cmapp, pdf_xref *xref, fz_obj *stmobj) fz_close(file); - wmode = fz_dict_gets(ctx, stmobj, "WMode"); - if (fz_is_int(ctx, wmode)) - pdf_set_wmode(cmap, fz_to_int(ctx, wmode)); + wmode = fz_dict_gets(stmobj, "WMode"); + if (fz_is_int(wmode)) + pdf_set_wmode(cmap, fz_to_int(wmode)); - obj = fz_dict_gets(ctx, stmobj, "UseCMap"); - if (fz_is_name(ctx, obj)) + obj = fz_dict_gets(stmobj, "UseCMap"); + if (fz_is_name(obj)) { - error = pdf_load_system_cmap(ctx, &usecmap, fz_to_name(ctx, obj)); + error = pdf_load_system_cmap(ctx, &usecmap, fz_to_name(obj)); if (error) { - error = fz_error_note(error, "cannot load system usecmap '%s'", fz_to_name(ctx, obj)); + error = fz_error_note(error, "cannot load system usecmap '%s'", fz_to_name(obj)); goto cleanup; } pdf_set_usecmap(ctx, cmap, usecmap); |