sc/source/ui/navipi/content.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 30bb854a6552f77c6b7bd219b11390a94a341a3d
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Sun May 5 20:54:59 2024 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Mon May 6 18:37:06 2024 +0200

    wrong ScContentTree::SelectEntryByName early return condition
    
    Change-Id: I974f5aea545a80b0e48b50e2a2eae0729ff59691
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167174
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Jenkins
    (cherry picked from commit 18b70ec7d9c4a0288f206cb64708f87a83789c00)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167087
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
    Reviewed-by: Eike Rathke <er...@redhat.com>
    Tested-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx
index 3b405d9449f6..80ee3cee7650 100644
--- a/sc/source/ui/navipi/content.cxx
+++ b/sc/source/ui/navipi/content.cxx
@@ -1520,7 +1520,7 @@ void ScContentTree::SelectEntryByName(const ScContentId 
nRoot, std::u16string_vi
 {
     weld::TreeIter* pParent = m_aRootNodes[nRoot].get();
 
-    if (pParent || !m_xTreeView->iter_has_child(*pParent))
+    if (!pParent || !m_xTreeView->iter_has_child(*pParent))
         return;
 
     std::unique_ptr<weld::TreeIter> 
xEntry(m_xTreeView->make_iterator(pParent));

Reply via email to