diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-09-02 16:00:28 +0100 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2019-09-03 10:38:51 +0200 |
commit | 9c856c796f3a810ebf8c168169250eccf4eefaa0 (patch) | |
tree | 0852b29ef1fb5e32e2bde675501ae866fa9c4582 /editeng | |
parent | 136ab631a3d2f7cfa22ca7b657e1c54c9d022b66 (diff) |
assert on selecting text from end to start in shape with a11y enabled
Change-Id: I0a135236cf5e5f291b6289cc76228290a6f77e98
Reviewed-on: https://gerrit.libreoffice.org/78409
Tested-by: Jenkins
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/accessibility/AccessibleEditableTextPara.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/accessibility/AccessibleEditableTextPara.cxx b/editeng/source/accessibility/AccessibleEditableTextPara.cxx index b42e895f67e0..19e67b07469b 100644 --- a/editeng/source/accessibility/AccessibleEditableTextPara.cxx +++ b/editeng/source/accessibility/AccessibleEditableTextPara.cxx @@ -2038,7 +2038,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 ); } |