summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2022-04-04 12:48:39 -0800
committerJim Raykowski <raykowj@gmail.com>2022-04-05 04:20:51 +0200
commit097bcd530c7facde50c7fe21e1cee9b4bf4a7949 (patch)
tree9dc4b237ec659bc658d85010480077c84746545f /sw
parentc07d2ea9589cf794bd300697e8a40bf9f94a8346 (diff)
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 <raykowj@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/utlui/content.cxx5
1 files changed, 5 insertions, 0 deletions
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);
}