summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-06-29 08:46:38 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-06-29 13:28:05 +0200
commita440d93d2817b908643f0af9e53479fe91286905 (patch)
tree9078c104de1c2cf1734556f0ab41a7c281630803
parent0031f34d0ba99de5384e13843e99ffbb01f729d0 (diff)
cid#1506710 Unchecked return value
Change-Id: I703b6eaaaf4381aeafdf9c616dffe871f82caafe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136600 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/source/uibase/utlui/content.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx
index beae047b4f37..132eecd13aa1 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -3901,7 +3901,8 @@ void SwContentTree::UpdateTracking()
{
if (m_xTreeView->get_iter_depth(*xIter) == 0)
break;
- m_xTreeView->iter_previous(*xIter);
+ if (!m_xTreeView->iter_previous(*xIter))
+ break;
while (!weld::IsEntryVisible(*m_xTreeView, *xIter))
m_xTreeView->iter_parent(*xIter);
}