summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2019-10-23 15:25:49 -0400
committerHenry Castro <hcastro@collabora.com>2019-10-24 02:09:58 +0200
commit943cd5381b241f18f9ede25f3c2de4168a998caa (patch)
treeadecff41ad8897548fb8010db8b252ef88286ecf /svtools
parent4c0bccbb21ba022fd9d630eb1d9ae34673b4dc11 (diff)
lok: valueset: dump as property tree the selected item
The client side requires the data of the selected item to apply CSS border styles. Change-Id: I19f662329e4cfce45e32f82dcf9398dc9c3ecaec Reviewed-on: https://gerrit.libreoffice.org/81421 Tested-by: Jenkins Reviewed-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/valueset.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx
index 462cd55e99d1..08721c25acde 100644
--- a/svtools/source/control/valueset.cxx
+++ b/svtools/source/control/valueset.cxx
@@ -1446,8 +1446,11 @@ boost::property_tree::ptree ValueSet::DumpAsPropertyTree()
boost::property_tree::ptree aEntry;
ValueSetItem* pItem = mItemList[nIt].get();
aEntry.put("id", pItem->mnId);
- aEntry.put("text", pItem->maText);
aEntry.put("image", pItem->maImage.GetStock());
+ if (mnSelItemId == pItem->mnId) {
+ aEntry.put("selected", true);
+ }
+
aEntries.push_back(std::make_pair("", aEntry));
}