diff options
author | Jim Raykowski <raykowj@gmail.com> | 2022-10-06 15:32:11 -0800 |
---|---|---|
committer | Jim Raykowski <raykowj@gmail.com> | 2022-10-07 08:33:08 +0200 |
commit | 22757917067d7c4e475228cec2a0dd4d2f900e95 (patch) | |
tree | 6284db228d9d82cde49a6184c75278ed1b60a50b /sw/source/uibase/app | |
parent | 8e9fbf5cecfa3ab210a5e772c5e49b1c18a19ebe (diff) |
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 <raykowj@gmail.com>
Diffstat (limited to 'sw/source/uibase/app')
-rw-r--r-- | sw/source/uibase/app/docst.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
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" ); |