sw/source/uibase/utlui/navipi.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 0349c9df44896fea2c41588243a151bf594ea0e5
Author:     Jim Raykowski <rayk...@gmail.com>
AuthorDate: Tue Oct 26 20:19:31 2021 -0800
Commit:     Jim Raykowski <rayk...@gmail.com>
CommitDate: Wed Oct 27 22:49:11 2021 +0200

    SwNavigator: Use stored outline levels shown value for both flavors
    
    Currently only the floating Navigator uses the outline levels value
    stored in the Navigator configuration. This patch makes the sidebar
    version also use the stored outline levels value.
    
    Change-Id: I6f54f92b7375e0688b29aa128008a3bd758a785a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124251
    Tested-by: Jenkins
    Reviewed-by: Jim Raykowski <rayk...@gmail.com>

diff --git a/sw/source/uibase/utlui/navipi.cxx 
b/sw/source/uibase/utlui/navipi.cxx
index 68696f3f0b1f..b414aaffa95f 100644
--- a/sw/source/uibase/utlui/navipi.cxx
+++ b/sw/source/uibase/utlui/navipi.cxx
@@ -569,6 +569,8 @@ SwNavigationPI::SwNavigationPI(weld::Widget* pParent,
 
     bool bFloatingNavigator = ParentIsFloatingWindow(m_xNavigatorDlg);
 
+    
m_xContentTree->SetOutlineLevel(static_cast<sal_uInt8>(m_pConfig->GetOutlineLevel()));
+
     
m_xContentTree->SetOutlineTracking(static_cast<sal_uInt8>(m_pConfig->GetOutlineTracking()));
     m_xContentTree->SetTableTracking(m_pConfig->IsTableTracking());
     m_xContentTree->SetSectionTracking(m_pConfig->IsSectionTracking());
@@ -1142,7 +1144,7 @@ SwNavigatorWin::SwNavigatorWin(SfxBindings* _pBindings, 
SfxChildWindow* _pMgr,
             
m_xNavi->m_xContentTree->set_selection_mode(SelectionMode::Multiple);
         }
     }
-    m_xNavi->m_xContentTree->SetOutlineLevel( static_cast< sal_uInt8 >( 
pNaviConfig->GetOutlineLevel() ) );
+
     m_xNavi->SetRegionDropMode( pNaviConfig->GetRegionMode() );
 
     SetMinOutputSizePixel(GetOptimalSize());

Reply via email to