[Libreoffice-commits] core.git: sw/source
Jim Raykowski (via logerrit)
logerrit at kemper.freedesktop.org
Fri Oct 2 08:31:25 UTC 2020
sw/source/uibase/utlui/content.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 1709a9b9a2433032b5acf262ef506272c33d5e63
Author: Jim Raykowski <raykowj at gmail.com>
AuthorDate: Thu Oct 1 21:52:45 2020 -0800
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Oct 2 10:30:43 2020 +0200
CID#1467666 Unchecked return value (CHECKED_RETURN)
Change-Id: I99a730c2a6badbc7341b80464941cf2c30f028c0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103786
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx
index ba62299111fd..fc9d457a03c0 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -3229,8 +3229,8 @@ void SwContentTree::UpdateTracking()
// assure outline content type is expanded
// this assumes outline content type is first in treeview
std::unique_ptr<weld::TreeIter> xFirstEntry(m_xTreeView->make_iterator());
- m_xTreeView->get_iter_first(*xFirstEntry);
- m_xTreeView->expand_row(*xFirstEntry);
+ if (m_xTreeView->get_iter_first(*xFirstEntry))
+ m_xTreeView->expand_row(*xFirstEntry);
m_xTreeView->all_foreach([this, nActPos](weld::TreeIter& rEntry){
bool bRet = false;
More information about the Libreoffice-commits
mailing list