summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-06 15:45:02 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-06 20:27:38 +0200
commitf87a5e224d295505c61fa4fd35aef76d7af09bb5 (patch)
treee1d34f7287dc72e2802785c6e9ec1c26b568aace /sd
parent67f4ece34ffae7404eaefc0286dfbe3ad64289ea (diff)
tdf#134521 hierarchical search needed, not just toplevel entries
Change-Id: If5c9a69549e683eb4af619b1f27a22833c36e34d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98213 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/dlg/sdtreelb.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx
index a9670d472b25..f2c8cf343ac6 100644
--- a/sd/source/ui/dlg/sdtreelb.cxx
+++ b/sd/source/ui/dlg/sdtreelb.cxx
@@ -1111,7 +1111,16 @@ void SdPageObjsTLV::Fill(const SdDrawDocument* pInDoc, bool bAllPages, const OUS
}
}
if (!aSelection.isEmpty())
- m_xTreeView->select_text(aSelection);
+ {
+ m_xTreeView->all_foreach([this, &aSelection](weld::TreeIter& rEntry){
+ if (m_xTreeView->get_text(rEntry) == aSelection)
+ {
+ m_xTreeView->select(rEntry);
+ return true;
+ }
+ return false;
+ });
+ }
}
/**