From 22757917067d7c4e475228cec2a0dd4d2f900e95 Mon Sep 17 00:00:00 2001 From: Jim Raykowski Date: Thu, 6 Oct 2022 15:32:11 -0800 Subject: 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 --- sw/source/uibase/app/docst.cxx | 2 -- 1 file changed, 2 deletions(-) (limited to 'sw/source/uibase/app') 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( m_xBasePool->Find( rName, nFamily ) ); SAL_WARN_IF( !pStyle, "sw.ui", "Style not found" ); -- cgit