summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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));
}