tdf#151548 ContentControls: improve ListEntry::setValue
commit330194d164be6f5ac33a3d7a229f9ace8d54d68d
authorJustin Luth <jluth@mail.com>
Mon, 28 Nov 2022 19:21:17 +0000 (28 14:21 -0500)
committerJustin Luth <jluth@mail.com>
Mon, 28 Nov 2022 21:00:58 +0000 (28 22:00 +0100)
tree71b46e2056915019960cce3edfdd53289eb6fe5e
parent589e03fb4c3b05bf3742c0cb8b366322ffdf1fa9
tdf#151548 ContentControls: improve ListEntry::setValue

The LO implementation pulls the display text from the value
in case there is no display text provided.

This is the opposite from VBA. So when we set the Value,
make sure that we aren't unintentionally
changing the display as well.

Change-Id: I699bfc1c2e9fbab6574a3c1363fe1dc21c7354e1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143416
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
sw/source/ui/vba/vbacontentcontrollistentry.cxx