sw/source/uibase/utlui/content.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit 097bcd530c7facde50c7fe21e1cee9b4bf4a7949 Author: Jim Raykowski <rayk...@gmail.com> AuthorDate: Mon Apr 4 12:48:39 2022 -0800 Commit: Jim Raykowski <rayk...@gmail.com> CommitDate: Tue Apr 5 04:20:51 2022 +0200 tdf#148103 SwNavigator: fix outline levels shown fixes regression introduced in commit 3771a81060f9e1f60ada37c3b7fa0a51b3042952 Change-Id: Ie9a839f0de32177f06bd47a204c55b38eb9371f2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132533 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 36f7801f375a..281821d183ad 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -4480,13 +4480,18 @@ void SwContentTree::DeleteOutlineSelections() void SwContentTree::SetOutlineLevel(sal_uInt8 nSet) { + if (nSet == m_nOutlineLevel) + return; m_nOutlineLevel = nSet; m_pConfig->SetOutlineLevel( m_nOutlineLevel ); std::unique_ptr<SwContentType>& rpContentT = (State::ACTIVE == m_eState) ? m_aActiveContentArr[ContentTypeId::OUTLINE] : m_aHiddenContentArr[ContentTypeId::OUTLINE]; if(rpContentT) + { rpContentT->SetOutlineLevel(m_nOutlineLevel); + rpContentT->FillMemberList(); + } Display(State::ACTIVE == m_eState); }