summaryrefslogtreecommitdiff
path: root/sw/source/core/txtnode/txtedt.cxx
diff options
context:
space:
mode:
authorMichael Warner <michael.warner.ut+libreoffice@gmail.com>2022-02-13 22:45:48 -0500
committerXisco Fauli <xiscofauli@libreoffice.org>2022-02-17 17:15:16 +0100
commitb7308bda7212da5681b7047c02e2e13e36b2a98a (patch)
treeadc0fea3b951fb5fda1439dc6e1741e716684aed /sw/source/core/txtnode/txtedt.cxx
parent957d99a539df6e21fd40370938ca5dab1613cf8c (diff)
tdf#147196: Fix crash in editeng when applying title case format
Fixes a possiblity of crashing when applying title case format using the edit engine. Change-Id: I4f44f635a1c96b021c084bb5bb973180744e56e2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129888 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/source/core/txtnode/txtedt.cxx')
-rw-r--r--sw/source/core/txtnode/txtedt.cxx3
1 files changed, 0 insertions, 3 deletions
diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx
index 1ed69cb78265..28b633755a7d 100644
--- a/sw/source/core/txtnode/txtedt.cxx
+++ b/sw/source/core/txtnode/txtedt.cxx
@@ -1789,9 +1789,6 @@ void SwTextNode::TransliterateText(
GetText(), nStt,
g_pBreakIt->GetLocale(GetLang(nStt, 1)),
nWordType);
-
- /* Selection may end in the middle of a word */
- aCurWordBndry.endPos = std::min(aCurWordBndry.endPos, selEnd);
}
}
else if (rTrans.getType() == TransliterationFlags::SENTENCE_CASE)