1. 28 Apr, 2019 1 commit
  2. 25 Apr, 2019 3 commits
  3. 22 Apr, 2019 6 commits
  4. 21 Apr, 2019 1 commit
  5. 17 Apr, 2019 2 commits
  6. 13 Apr, 2019 1 commit
  7. 10 Apr, 2019 2 commits
  8. 07 Apr, 2019 2 commits
  9. 05 Apr, 2019 6 commits
  10. 03 Apr, 2019 5 commits
  11. 01 Apr, 2019 5 commits
  12. 31 Mar, 2019 4 commits
  13. 30 Mar, 2019 2 commits
    • Nelson Benitez's avatar
      Form.cc: fix radiobutton reporting wrong state · 8aa78dbc
      Nelson Benitez authored
      When a radiobutton (belonging to a normal radiobutton group)
      has a /V key matching his 'OnStr' state, then when you
      ask that radiobutton for his state (eg. radiobutton->state())
      it will wrongly return 'true', when really the active
      radiobutton is another one in the group.
      
      This happens because the faulty radiobutton was not passing
      the getState() call to his Parent (which every radiobutton
      in a group should do, as the Parent stores the value of the current
      active item).
      
      The code was not doing it because it had a valid AppearanceState
      (/V key). That behaviour may be right for checkboxes but not for
      radiobuttons.
      
      A testcase is included. An example definition of an
      affected radiobutton follows:
      
      /F 4
      /FT /Btn
      /Ff 49152
      /AP /N /Beer 59 0 R /Off 61 0 R
      /AS /Beer
      /MK /BC [1,0,0] /BG [1,1,1] /CA (4)
      /P 20 0 R
      /Parent 8 0 R
      /Rect [235.277,654.247,249.224,668.194]
      /Subtype /Widget
      /Type /Annot
      /V /Beer
      
      Fixes issue #159
      8aa78dbc
    • Albert Astals Cid's avatar
      Update (C) of previous commit · b0f11e3c
      Albert Astals Cid authored
      b0f11e3c