[Libreoffice-commits] core.git: Branch 'libreoffice-6-1' - editeng/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Aug 13 15:10:39 UTC 2018


 editeng/source/editeng/impedit4.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3b07dfad5df6d7117d6bd29aa30245a6dc515379
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Wed Aug 8 22:58:43 2018 +0200
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Aug 13 17:10:18 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/58936
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx
index e2f7e2412dd0..88907003ab36 100644
--- a/editeng/source/editeng/impedit4.cxx
+++ b/editeng/source/editeng/impedit4.cxx
@@ -2759,7 +2759,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;


More information about the Libreoffice-commits mailing list