[poppler] poppler/Form.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Wed Jun 14 21:20:51 UTC 2017


 poppler/Form.cc |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

New commits:
commit 9fc5ed2176da68442927127bea8c427800eb244c
Author: Hans-Ulrich Jüttner <huj at froreich-bioscientia.de>
Date:   Wed Jun 14 23:19:48 2017 +0200

    FormFieldButton::setState() should check the field isn't readOnly
    
    Bug #101419

diff --git a/poppler/Form.cc b/poppler/Form.cc
index ced3140c..4627a432 100644
--- a/poppler/Form.cc
+++ b/poppler/Form.cc
@@ -17,6 +17,7 @@
 // Copyright 2012 Fabio D'Urso <fabiodurso at hotmail.it>
 // Copyright 2015 André Guerreiro <aguerreiro1985 at gmail.com>
 // Copyright 2015 André Esser <bepandre at hotmail.com>
+// Copyright 2017 Hans-Ulrich Jüttner <huj at froreich-bioscientia.de>
 //
 //========================================================================
 
@@ -903,11 +904,6 @@ void FormFieldButton::fillChildrenSiblingsID()
 
 GBool FormFieldButton::setState(char *state)
 {
-  if (readOnly) {
-    error(errInternal, -1, "FormFieldButton::setState called on a readOnly field\n");
-    return gFalse;
-  }
-
   // A check button could behave as a radio button
   // when it's in a set of more than 1 buttons
   if (btype != formButtonRadio && btype != formButtonCheck)


More information about the poppler mailing list