vcl/source/edit/texteng.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 7aa00ac2de10ffc553e8809045e954cff9f81aa0 Author: Andrea Gelmini <[email protected]> AuthorDate: Fri Jan 31 12:13:29 2025 +0100 Commit: Julien Nabet <[email protected]> CommitDate: Sat Feb 1 14:22:25 2025 +0100 Fix typo Change-Id: I63ecf57578e8c7d8688fbebcbc1f22fd9e70c194 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180986 Reviewed-by: Julien Nabet <[email protected]> Tested-by: Julien Nabet <[email protected]> diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx index ab18263c8817..75cf692171a5 100644 --- a/vcl/source/edit/texteng.cxx +++ b/vcl/source/edit/texteng.cxx @@ -2357,7 +2357,7 @@ OUString TextEngine::GetWord( const TextPaM& rCursorPos, TextPaM* pStartOfWord, TextNode* pNode = mpDoc->GetNodes()[ rCursorPos.GetPara() ].get(); uno::Reference < i18n::XBreakIterator > xBI = GetBreakIterator(); i18n::Boundary aBoundary = xBI->getWordBoundary( pNode->GetText(), rCursorPos.GetIndex(), GetLocale(), i18n::WordType::ANYWORD_IGNOREWHITESPACES, true ); - // tdf#57879 - expand selection to the left to include connector punctuations and search for additional word boundaries + // tdf#57879 - expand selection to the left to include connector punctuation and search for additional word boundaries if (aBoundary.startPos > 0 && aBoundary.startPos < pNode->GetText().getLength() && u_charType(pNode->GetText()[aBoundary.startPos]) == U_CONNECTOR_PUNCTUATION) { aBoundary.startPos = xBI->getWordBoundary(pNode->GetText(), aBoundary.startPos - 1, @@ -2369,7 +2369,7 @@ OUString TextEngine::GetWord( const TextPaM& rCursorPos, TextPaM* pStartOfWord, xBI->getWordBoundary( pNode->GetText(), aBoundary.startPos - 2, GetLocale(), css::i18n::WordType::ANYWORD_IGNOREWHITESPACES, true).startPos); } - // tdf#57879 - expand selection to the right to include connector punctuations and search for additional word boundaries + // tdf#57879 - expand selection to the right to include connector punctuation and search for additional word boundaries if (aBoundary.endPos > 0 && aBoundary.endPos < pNode->GetText().getLength() && u_charType(pNode->GetText()[aBoundary.endPos - 1]) == U_CONNECTOR_PUNCTUATION) { aBoundary.endPos = xBI->getWordBoundary(pNode->GetText(), aBoundary.endPos,
