editeng/source/editeng/impedit4.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 1fdb7c1434048f4dfc7168158c626cdc188dccde Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Wed Aug 8 22:58:43 2018 +0200 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Aug 13 15:39:56 2018 +0200 tdf#119155, tdf#119162: check there's at least 1 word in Capitalize Every Word See https://bugs.documentfoundation.org/show_bug.cgi?id=119155#c4 + https://bugs.documentfoundation.org/attachment.cgi?id=144036 Change-Id: Id2cb05b3c83069b031a8be73cf0a4ec774d94d7e Reviewed-on: https://gerrit.libreoffice.org/58750 Tested-by: Julien Nabet <serval2...@yahoo.fr> Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx index 14449b19fb5e..b9b55534b37e 100644 --- a/editeng/source/editeng/impedit4.cxx +++ b/editeng/source/editeng/impedit4.cxx @@ -2756,7 +2756,7 @@ EditSelection ImpEditEngine::TransliterateText( const EditSelection& rSelection, } i18n::Boundary aCurWordBndry( aSttBndry ); - while (aCurWordBndry.startPos <= aEndBndry.startPos) + while (aCurWordBndry.endPos && aCurWordBndry.startPos <= aEndBndry.startPos) { nCurrentStart = aCurWordBndry.startPos; nCurrentEnd = aCurWordBndry.endPos; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits