summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-08-08 22:58:43 +0200
committerCaolán McNamara <caolanm@redhat.com>2018-08-13 17:10:18 +0200
commit3b07dfad5df6d7117d6bd29aa30245a6dc515379 (patch)
treec64331594446a0f7545cbee03aa0e0050ff851d0
parent955eb9d196bdb626f876f02b3961aac79cce3849 (diff)
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@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--editeng/source/editeng/impedit4.cxx2
1 files changed, 1 insertions, 1 deletions
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;