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

New commits:
commit 8945724054c47afa429c30a15eec89d9e70a734c
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Mon Sep 2 16:00:28 2019 +0100
Commit:     Michael Stahl <michael.st...@cib.de>
CommitDate: Tue Sep 3 10:38:44 2019 +0200

    assert on selecting text from end to start in shape with a11y enabled
    
    Change-Id: I0a135236cf5e5f291b6289cc76228290a6f77e98
    Reviewed-on: https://gerrit.libreoffice.org/78408
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.st...@cib.de>

diff --git a/editeng/source/accessibility/AccessibleEditableTextPara.cxx 
b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
index 7914e65383a5..1055136a3fec 100644
--- a/editeng/source/accessibility/AccessibleEditableTextPara.cxx
+++ b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
@@ -2043,7 +2043,7 @@ namespace accessibility
                 if( nIndex <= aBoundary.endPos )
                 {
                     nextWord =  aBoundary.endPos;
-                    if( sText[nextWord] == u' ' ) nextWord++;
+                    if (nextWord < sText.getLength() && sText[nextWord] == u' 
') nextWord++;
                     bWord = implGetWordBoundary( sText, aBoundary, nextWord );
                 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to