sw/source/uibase/utlui/content.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 1709a9b9a2433032b5acf262ef506272c33d5e63
Author:     Jim Raykowski <rayk...@gmail.com>
AuthorDate: Thu Oct 1 21:52:45 2020 -0800
Commit:     Caolán McNamara <caol...@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 <caol...@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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to