summaryrefslogtreecommitdiff
path: root/vcl/source/treelist
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-02-02 19:55:19 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2021-02-03 08:49:35 +0100
commit14d064cee7b76e8a2a2201d4da423336f68fe624 (patch)
tree4b33dbdf88a4c0eb1320b8216edd58ebc4d42934 /vcl/source/treelist
parent404f14ce91b3c8abdd59c017298923b71fa5cef0 (diff)
tdf#92767: sc: Add UItest
Change-Id: I9f1d82d81364ee0ee833b4505e6925cce5e3e787 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110332 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'vcl/source/treelist')
-rw-r--r--vcl/source/treelist/uiobject.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/treelist/uiobject.cxx b/vcl/source/treelist/uiobject.cxx
index e7fb516b5d21..0caea7163f76 100644
--- a/vcl/source/treelist/uiobject.cxx
+++ b/vcl/source/treelist/uiobject.cxx
@@ -108,6 +108,10 @@ StringMap TreeListEntryUIObject::get_state()
aMap["VisibleChildCount"] = OUString::number(mxTreeList->GetVisibleChildCount(mpEntry));
aMap["IsSelected"] = OUString::boolean(mxTreeList->IsSelected(mpEntry));
+ SvLBoxButton* pItem = static_cast<SvLBoxButton*>(mpEntry->GetFirstItem(SvLBoxItemType::Button));
+ if (pItem)
+ aMap["IsChecked"] = OUString::boolean(pItem->IsStateChecked());
+
return aMap;
}