Bug 75979 - Use field value V for radio buttons
Summary: Use field value V for radio buttons
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-10 14:05 UTC by Marek Kasik
Modified: 2014-05-04 14:21 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Use field value V for radio buttons (1.09 KB, text/plain)
2014-03-10 14:05 UTC, Marek Kasik
Details
reproducer (3.69 KB, application/octet-stream)
2014-03-10 14:06 UTC, Marek Kasik
Details

Description Marek Kasik 2014-03-10 14:05:27 UTC
Created attachment 95505 [details]
Use field value V for radio buttons

A form field button should be set to "on" state only if its "AS" value is equal to "V" value of its parent. It seems that it is implemented this way in xpdf and to some extent also in Adobe Reader (it seems that it uses only the "V" value and doesn't compare it with "AS" value). This is also used in the situation when there is no "AS" value defined in the child field.
The attached patch compares current appearance state with the "V" value and let it set to "on" state only if they are equal.
Comment 1 Marek Kasik 2014-03-10 14:06:31 UTC
Created attachment 95506 [details]
reproducer
Comment 2 Marek Kasik 2014-03-10 14:08:42 UTC
(In reply to comment #0)
> Created attachment 95505 [details]
> Use field value V for radio buttons
> 
> A form field button should be set to "on" state only if its "AS" value is
> equal to "V" value of its parent.

By the "AS" value I mean the value of what we set in appearState member of Annot class actually.
Comment 3 Albert Astals Cid 2014-05-04 14:21:20 UTC
Pushed! Thanks!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.