summaryrefslogtreecommitdiff
path: root/pdf/pdf_form.c
diff options
context:
space:
mode:
Diffstat (limited to 'pdf/pdf_form.c')
-rw-r--r--pdf/pdf_form.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/pdf/pdf_form.c b/pdf/pdf_form.c
index 168e56aa..01f82d74 100644
--- a/pdf/pdf_form.c
+++ b/pdf/pdf_form.c
@@ -1720,7 +1720,6 @@ static void execute_action(pdf_document *doc, pdf_obj *obj, pdf_obj *a)
static void update_text_markup_appearance(pdf_document *doc, pdf_obj *annot, fz_annot_type type)
{
- fz_context *ctx = doc->ctx;
float color[3];
float alpha;
float line_height;
@@ -1807,6 +1806,8 @@ void pdf_update_appearance(pdf_document *doc, pdf_obj *obj)
case FZ_ANNOT_HIGHLIGHT:
update_text_markup_appearance(doc, obj, type);
break;
+ default:
+ break;
}
pdf_dict_dels(obj, "Dirty");
@@ -2005,9 +2006,9 @@ static void toggle_check_box(pdf_document *doc, pdf_obj *obj)
/* For radio buttons, first turn off all buttons in the group and
* then set the one that was clicked */
pdf_obj *kids = pdf_dict_gets(grp, "Kids");
- int i, n = pdf_array_len(kids);
- for (i = 0; i < n; i++)
+ len = pdf_array_len(kids);
+ for (i = 0; i < len; i++)
check_off(ctx, pdf_array_get(kids, i));
pdf_dict_puts(obj, "AS", key);