sw/source/core/txtnode/ndtxt.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit a4d011fb8ae24f90375744af5e98ba81716a22cb Author: Justin Luth <jl...@mail.com> AuthorDate: Mon May 15 09:57:55 2023 -0400 Commit: Justin Luth <jl...@mail.com> CommitDate: Mon May 15 20:41:02 2023 +0200 related tdf#136536 sw: don't copy useless char escapement to next node on split This was clearing ANY single direct formatting attribute, not just char escapement. While that might be desireable in certain contexts, limit the hack to its intended subscript/superscript only. Change-Id: I0d503af826635c4325332cc985964957ee0b065d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151796 Tested-by: Jenkins Reviewed-by: Justin Luth <jl...@mail.com> diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx index 9a8173833b45..f2dd7a67d992 100644 --- a/sw/source/core/txtnode/ndtxt.cxx +++ b/sw/source/core/txtnode/ndtxt.cxx @@ -738,7 +738,7 @@ SwTextNode *SwTextNode::SplitContentNode(const SwPosition & rPos, } const std::shared_ptr<SfxItemSet>& pSet = pHt->GetAutoFormat().GetStyleHandle(); - if (!pSet || pSet->Count() != 1 || !pSet->GetItem(RES_CHRATR_ESCAPEMENT)) + if (!pSet || pSet->Count() != 1 || !pSet->HasItem(RES_CHRATR_ESCAPEMENT)) { continue; }