[Libreoffice-commits] core.git: editeng/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Mon Sep 2 19:30:55 UTC 2019
editeng/source/accessibility/AccessibleEditableTextPara.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 90e2f53ec571a8035b8eabdaa0310b2bb1ab3559
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Sep 2 16:00:28 2019 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Sep 2 21:30:15 2019 +0200
assert on selecting text from end to start in shape with a11y enabled
Change-Id: I0a135236cf5e5f291b6289cc76228290a6f77e98
Reviewed-on: https://gerrit.libreoffice.org/78406
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/accessibility/AccessibleEditableTextPara.cxx b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
index 79c7ecbc9639..496a1e4c994e 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 );
}
More information about the Libreoffice-commits
mailing list