[Libreoffice-bugs] [Bug 118824] .CurrentValue Returns Wrong Value in Base - Different from OOo

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Jul 20 01:19:21 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=118824

--- Comment #2 from Drew Jensen <drewjensen.inbox at gmail.com> ---
You are correct currentvalue does return a different result between AOO and
LibO, and appears to have done so since LibO 4.1. 

I find this mentioned in a comment, from 2015, on an issue
https://bugs.documentfoundation.org/show_bug.cgi?id=91828#c10
"Since LO 4.1 CurrentValue of a listbox changed to the value, which should be
saved in the database. Older versions will show the text, which could be seen
on the screen."

That sounds a bit like it might of been intentional, but I read over the
release notes for 4.0, 4.1 and 4.2 in which there is mention of changes to
checkbox form controls, but none about listbox and a change in currentvalue.
Nor could I see any  mentioned in the API changes listed there.

For a workaround you just need to treat the control as if multi-select is
turned on and use the SelectedItems and ListItems to retrieve the string.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180720/62d4f48b/attachment.html>


More information about the Libreoffice-bugs mailing list