summaryrefslogtreecommitdiff
path: root/sw/source/uibase/app
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2022-10-13 16:20:44 -0800
committerJim Raykowski <raykowj@gmail.com>2022-10-20 07:52:34 +0200
commita3238a8e35c9c649069ef67ffa83e0d83f25936b (patch)
tree6bddb8d2a835ed5a874ec51dc672fa56d0a4c738 /sw/source/uibase/app
parentb8fd73044cc7e8f3257a8ca56728e56119821046 (diff)
tdf#151521 Fix para applied style sub-level remains visible
... when parent outline content is folded Commit 22757917067d7c4e475228cec2a0dd4d2f900e95, removed making all outline content temporarily visible during style application. But it is needed so that paragraph applied stye sub-levels do not remain visible when outline-folding is set to include sub-levels as outline content. This patch fixes the cause of the bug reported in tdf#151315. Change-Id: I4b8fd4bdd1ca08d65cf8fbb8c3f73ef7d00dcc2e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141357 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Diffstat (limited to 'sw/source/uibase/app')
-rw-r--r--sw/source/uibase/app/docst.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/uibase/app/docst.cxx b/sw/source/uibase/app/docst.cxx
index 3581cac6d09b..baa2a4ca74ef 100644
--- a/sw/source/uibase/app/docst.cxx
+++ b/sw/source/uibase/app/docst.cxx
@@ -1157,6 +1157,11 @@ SfxStyleFamily SwDocShell::ApplyStyles(const OUString &rName, SfxStyleFamily nFa
}
case SfxStyleFamily::Para:
{
+ // When outline-folding is enabled, MakeAllOutlineContentTemporarilyVisible makes
+ // application of a paragraph style that has an outline-level greater than the previous
+ // outline node become folded content of the previous outline node if the previous
+ // outline node's content is folded.
+ MakeAllOutlineContentTemporarilyVisible a(GetDoc());
// #i62675#
// clear also list attributes at affected text nodes, if paragraph
// style has the list style attribute set.