diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-03-22 17:03:31 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-03-23 15:58:47 +0100 |
commit | 005ab6e5a14f8b6df450a5374315f1e017e4f1ed (patch) | |
tree | a624b87285c4e04ead688f4cff6daea895e48a98 /source/pdf | |
parent | b2c3d9e7ca40e001d3ee18975427224b726dc4d1 (diff) | |
download | mupdf-005ab6e5a14f8b6df450a5374315f1e017e4f1ed.tar.xz |
Remove internal do/while braces in fz_try macros.
This has caught a couple of oddities...
Diffstat (limited to 'source/pdf')
-rw-r--r-- | source/pdf/pdf-form.c | 4 | ||||
-rw-r--r-- | source/pdf/pdf-interpret.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/pdf/pdf-form.c b/source/pdf/pdf-form.c index e62c954d..01efd818 100644 --- a/source/pdf/pdf-form.c +++ b/source/pdf/pdf-form.c @@ -949,7 +949,7 @@ void pdf_field_set_border_style(fz_context *ctx, pdf_document *doc, pdf_obj *fie else return; - fz_try(ctx); + fz_try(ctx) { pdf_dict_putl(ctx, field, val, PDF_NAME_BS, PDF_NAME_S, NULL); pdf_field_mark_dirty(ctx, doc, field); @@ -968,7 +968,7 @@ void pdf_field_set_button_caption(fz_context *ctx, pdf_document *doc, pdf_obj *f { pdf_obj *val = pdf_new_string(ctx, doc, text, strlen(text)); - fz_try(ctx); + fz_try(ctx) { if (pdf_field_type(ctx, doc, field) == PDF_WIDGET_TYPE_PUSHBUTTON) { diff --git a/source/pdf/pdf-interpret.c b/source/pdf/pdf-interpret.c index 715a0f12..64a60e06 100644 --- a/source/pdf/pdf-interpret.c +++ b/source/pdf/pdf-interpret.c @@ -862,7 +862,7 @@ pdf_process_keyword(fz_context *ctx, pdf_processor *proc, pdf_csi *csi, fz_strea fz_throw(ctx, FZ_ERROR_GENERIC, "cannot find Font resource '%s'", csi->name); font = load_font_or_hail_mary(ctx, csi->doc, csi->rdb, fontobj, 0, csi->cookie); fz_try(ctx) - proc->op_Tf(ctx, proc, csi->name, font, s[0]); break; + proc->op_Tf(ctx, proc, csi->name, font, s[0]); fz_always(ctx) pdf_drop_font(ctx, font); fz_catch(ctx) |