[
https://issues.apache.org/jira/browse/PDFBOX-2799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tilman Hausherr resolved PDFBOX-2799.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
1.8.10
Assignee: Tilman Hausherr
Thanks, I got your point: add / remove the original array element, not the
possibly dereferenced object.
> PDOptionalContentProperties.setGroupEnabled not working
> -------------------------------------------------------
>
> Key: PDFBOX-2799
> URL: https://issues.apache.org/jira/browse/PDFBOX-2799
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 1.8.10, 2.0.0
> Reporter: Michele Balistreri
> Assignee: Tilman Hausherr
> Labels: OCGs
> Fix For: 1.8.10, 2.0.0
>
> Attachments: PDOptionalContentProperties-enable-fix.diff
>
>
> PDOptionalContentProperties.setGroupEnabled does not work properly, because
> it tries to remove the wrong object from the OFF/ON dictionaries (the result
> of toDictionary, instead of the original object, which can be a different
> instance so the remove method does not find it). The attached patch fixes
> this issue.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]