[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - svtools/source

Henry Castro (via logerrit) logerrit at kemper.freedesktop.org
Wed Oct 23 21:00:40 UTC 2019


 svtools/source/control/valueset.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 3eee1297ba82dbbfc9b3f185cbe65b77bd582d2f
Author:     Henry Castro <hcastro at collabora.com>
AuthorDate: Wed Oct 23 15:25:49 2019 -0400
Commit:     Henry Castro <hcastro at collabora.com>
CommitDate: Wed Oct 23 22:59:46 2019 +0200

    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/81418
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Henry Castro <hcastro at collabora.com>

diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx
index d58decd8f177..8886e0dbd530 100644
--- a/svtools/source/control/valueset.cxx
+++ b/svtools/source/control/valueset.cxx
@@ -1450,8 +1450,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));
     }
 


More information about the Libreoffice-commits mailing list