sw/source/uibase/shells/textsh1.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 6157d6838a8af0d24658ba5d62192a72a6e0edfe Author: Jim Raykowski <[email protected]> AuthorDate: Fri Sep 26 00:06:07 2025 -0800 Commit: Xisco Fauli <[email protected]> CommitDate: Mon Sep 29 16:26:05 2025 +0200 Assure folded outline button does not remain after outline level direct formatting is cleared Without this patch the fold button remains and a crash occurs if the button is pressed. The patch also assures folded outline content is shown for outlines set by a style after the RES_PARATR_GRABBAG "OutlineContentVisibleAttr" is reset. Change-Id: I5ee19ec972c3084f3ba64c11bda32932141c81f3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191526 Tested-by: Jenkins Reviewed-by: Jim Raykowski <[email protected]> (cherry picked from commit 7ceb7a58e1bb1aca85435ded158fa2e19c004bf7) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191618 Reviewed-by: Xisco Fauli <[email protected]> diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx index ad9a9fa70bdc..1e11a968f968 100644 --- a/sw/source/uibase/shells/textsh1.cxx +++ b/sw/source/uibase/shells/textsh1.cxx @@ -1192,6 +1192,12 @@ void SwTextShell::Execute(SfxRequest &rReq) } case FN_FORMAT_RESET: { + // Assure the folded outline button does not remain after resetting + // RES_PARATTR_OUTLINELEVEL and that folded outline content that becomes unfolded due to + // RES_PARATR_GRABBAG "OutlineContentVisibleAttr" being reset is shown for outlines set by + // a style. + MakeAllOutlineContentTemporarilyVisible a(rWrtSh.GetDoc()); + // #i78856, reset all attributes but not the language attributes // (for this build an array of all relevant attributes and // remove the languages from that)
