diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-05 20:54:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-06 12:23:47 +0200 |
commit | 18b70ec7d9c4a0288f206cb64708f87a83789c00 (patch) | |
tree | 0e742f0513c286ace77961a58d955324f1c44a05 | |
parent | 0cd07e1fb7afc0a6831eaafabcead7e0c5f7ac3b (diff) |
wrong ScContentTree::SelectEntryByName early return condition
Change-Id: I974f5aea545a80b0e48b50e2a2eae0729ff59691
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167174
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
-rw-r--r-- | sc/source/ui/navipi/content.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx index b4c772e201f3..b1e8841b359c 100644 --- a/sc/source/ui/navipi/content.cxx +++ b/sc/source/ui/navipi/content.cxx @@ -1499,7 +1499,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)); |