sw/source/uibase/utlui/content.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6cb9b06432434fb3257118743780828b3b57326a
Author:     Jim Raykowski <rayk...@gmail.com>
AuthorDate: Mon Apr 27 22:50:32 2020 -0800
Commit:     Jim Raykowski <rayk...@gmail.com>
CommitDate: Fri May 1 08:18:25 2020 +0200

    tdf#130122 Make Navigator CNV collapse to children
    
    in root Content Navigation View again
    
    SwContentTree CollapseHdl needs to return false, when a root node
    collapse to children is done, to inform the caller not to do the
    collapse.
    
    Change-Id: Ie8bd731c6ea2f4ae51ddfcd4515d4481ab2d37b7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92999
    Tested-by: Jenkins
    Reviewed-by: Jim Raykowski <rayk...@gmail.com>

diff --git a/sw/source/uibase/utlui/content.cxx 
b/sw/source/uibase/utlui/content.cxx
index 207a0d63f610..d940f90b1637 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -1644,7 +1644,7 @@ IMPL_LINK(SwContentTree, CollapseHdl, const 
weld::TreeIter&, rParent, bool)
                 }
                 while (m_xTreeView->iter_next(*xEntry));
             }
-            return true;
+            return false; // return false to notify caller not to do collapse
         }
         SwContentType* pCntType = 
reinterpret_cast<SwContentType*>(m_xTreeView->get_id(rParent).toInt64());
         const sal_Int32 nAnd = ~(1 << static_cast<int>(pCntType->GetType()));
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to