sd/source/ui/dlg/sdtreelb.cxx |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

New commits:
commit 9de22c253f5286b6f6942f13bb8d1fdd15dcecc3
Author:     Caolán McNamara <[email protected]>
AuthorDate: Mon Jul 6 15:45:02 2020 +0100
Commit:     Caolán McNamara <[email protected]>
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 <[email protected]>

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;
+        });
+    }
 }
 
 /**
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to