sw/source/uibase/app/docst.cxx | 2 -- 1 file changed, 2 deletions(-) New commits: commit 22757917067d7c4e475228cec2a0dd4d2f900e95 Author: Jim Raykowski <rayk...@gmail.com> AuthorDate: Thu Oct 6 15:32:11 2022 -0800 Commit: Jim Raykowski <rayk...@gmail.com> CommitDate: Fri Oct 7 08:33:08 2022 +0200
tdf#151315 Fix char style not applied if outline-folding is enabled Making all folded content temporarily visible clobbers cursor selections which is the cause of the character style not applied when outline-folding is enabled. But it seems unnecessary to make all folded content temporarily visible during style application. It would have been nice if the author, me, had put a comment about why they thought it was necessary. This patch drops making all folded content temporarily visible during style application. If it is found to be required, there are ways to include it without clearing cursor selections. Change-Id: Iedb1d0f350d5271a211300af083bc76eb06b1326 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141035 Tested-by: Jenkins Reviewed-by: Jim Raykowski <rayk...@gmail.com> diff --git a/sw/source/uibase/app/docst.cxx b/sw/source/uibase/app/docst.cxx index 7e3b7e024ee2..58c3c9469024 100644 --- a/sw/source/uibase/app/docst.cxx +++ b/sw/source/uibase/app/docst.cxx @@ -1133,8 +1133,6 @@ void SwDocShell::Hide(const OUString &rName, SfxStyleFamily nFamily, bool bHidde SfxStyleFamily SwDocShell::ApplyStyles(const OUString &rName, SfxStyleFamily nFamily, SwWrtShell* pShell, const sal_uInt16 nMode ) { - MakeAllOutlineContentTemporarilyVisible a(GetDoc()); - SwDocStyleSheet* pStyle = static_cast<SwDocStyleSheet*>( m_xBasePool->Find( rName, nFamily ) ); SAL_WARN_IF( !pStyle, "sw.ui", "Style not found" );