summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gardiner <paul.gardiner@artifex.com>2018-08-17 13:20:50 +0100
committerPaul Gardiner <paul.gardiner@artifex.com>2018-08-20 09:57:36 +0100
commit3359bfb0bef6a13b3cfabb11a3de096ab2783e01 (patch)
tree1e9ce3054f84a8a0bd6981112730e213a000e8df
parent405b1158510f8768837a1642d6bbc9ad37e1a9f5 (diff)
downloadmupdf-3359bfb0bef6a13b3cfabb11a3de096ab2783e01.tar.xz
Fix inability to uncheck check boxes.
Just a case of fixing some incorrect logic.
-rw-r--r--source/pdf/pdf-form.c2
1 files changed, 1 insertions, 1 deletions
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";