diff options
author | Michael Warner <michael.warner.ut+libreoffice@gmail.com> | 2022-02-13 22:45:48 -0500 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-02-17 17:15:16 +0100 |
commit | b7308bda7212da5681b7047c02e2e13e36b2a98a (patch) | |
tree | adc0fea3b951fb5fda1439dc6e1741e716684aed /sw/source/core/txtnode/txtedt.cxx | |
parent | 957d99a539df6e21fd40370938ca5dab1613cf8c (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.cxx | 3 |
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) |