[Libreoffice-commits] core.git: Branch 'libreoffice-7-0' - sd/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Mon Jul 6 19:36:27 UTC 2020
sd/source/ui/dlg/sdtreelb.cxx | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
New commits:
commit 9de22c253f5286b6f6942f13bb8d1fdd15dcecc3
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Jul 6 15:45:02 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Jul 6 21:35:52 2020 +0200
tdf#134521 hierarchical search needed, not just toplevel entries
Change-Id: If5c9a69549e683eb4af619b1f27a22833c36e34d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98081
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx
index 485c0f48fa30..8144a1dd4155 100644
--- a/sd/source/ui/dlg/sdtreelb.cxx
+++ b/sd/source/ui/dlg/sdtreelb.cxx
@@ -1106,7 +1106,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;
+ });
+ }
}
/**
More information about the Libreoffice-commits
mailing list