diff options
author | Jim Raykowski <raykowj@gmail.com> | 2021-10-26 20:19:31 -0800 |
---|---|---|
committer | Jim Raykowski <raykowj@gmail.com> | 2021-10-27 22:49:11 +0200 |
commit | 0349c9df44896fea2c41588243a151bf594ea0e5 (patch) | |
tree | 6cf43fe043e776c31f8feedb59100ad71b0c23ff /sw | |
parent | 803ec436b13576e3f2818bb4ef6559e8f24b3d0c (diff) |
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 <raykowj@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/utlui/navipi.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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()); |