From 3359bfb0bef6a13b3cfabb11a3de096ab2783e01 Mon Sep 17 00:00:00 2001 From: Paul Gardiner Date: Fri, 17 Aug 2018 13:20:50 +0100 Subject: Fix inability to uncheck check boxes. Just a case of fixing some incorrect logic. --- source/pdf/pdf-form.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/pdf/pdf-form.c b/source/pdf/pdf-form.c index 20a0d574..879c7819 100644 --- a/source/pdf/pdf-form.c +++ b/source/pdf/pdf-form.c @@ -466,7 +466,7 @@ static void toggle_check_box(fz_context *ctx, pdf_document *doc, pdf_obj *obj) { /* "as" neither missing nor set to Off. Set it to Off, unless * this is a non-toggle-off radio button. */ - if (radio && !(ff & PDF_BTN_FIELD_IS_NO_TOGGLE_TO_OFF)) + if (!(radio && (ff & PDF_BTN_FIELD_IS_NO_TOGGLE_TO_OFF))) { check_off(ctx, doc, obj); val = "Off"; -- cgit v1.2.3