diff options
author | Arnaud Versini <arnaud.versini@gmail.com> | 2018-03-18 20:25:25 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-25 12:57:21 +0200 |
commit | dd5df4ccb33048fa5fa8f85b2e6e69a6a225be57 (patch) | |
tree | 2fe1c11f77fe2d93e371cc3b15dd62c14e63c12d /editeng | |
parent | db22599c8c5a4a8b553194c05fff65bd6d71ab40 (diff) |
accessibility: simplify OCommonAccessibleText
Change-Id: Ied5520179d15f0a854c16b14f5a5e6b84cef1300
Reviewed-on: https://gerrit.libreoffice.org/51514
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Arnaud Versini <arnaud.versini@libreoffice.org>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/accessibility/AccessibleEditableTextPara.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editeng/source/accessibility/AccessibleEditableTextPara.cxx b/editeng/source/accessibility/AccessibleEditableTextPara.cxx index cbb1d51bb224..9862ec401b18 100644 --- a/editeng/source/accessibility/AccessibleEditableTextPara.cxx +++ b/editeng/source/accessibility/AccessibleEditableTextPara.cxx @@ -1907,7 +1907,7 @@ namespace accessibility sal_Int32 nLength = sText.getLength(); // get word at index - implGetWordBoundary( aBoundary, nIndex ); + implGetWordBoundary( sText, aBoundary, nIndex ); //sal_Int32 curWordStart = aBoundary.startPos; @@ -1926,7 +1926,7 @@ namespace accessibility while ( (preWordStart >= 0 && !bWord ) || ( aBoundary.endPos > curWordStart ) ) { preWordStart--; - bWord = implGetWordBoundary( aBoundary, preWordStart ); + bWord = implGetWordBoundary( sText, aBoundary, preWordStart ); } if ( bWord && implIsValidBoundary( aBoundary, nLength ) ) { @@ -2036,7 +2036,7 @@ namespace accessibility sal_Int32 nLength = sText.getLength(); // get word at index - bool bWord = implGetWordBoundary( aBoundary, nIndex ); + bool bWord = implGetWordBoundary( sText, aBoundary, nIndex ); // real current world sal_Int32 nextWord = nIndex; @@ -2045,7 +2045,7 @@ namespace accessibility { nextWord = aBoundary.endPos; if( sText[nextWord] == u' ' ) nextWord++; - bWord = implGetWordBoundary( aBoundary, nextWord ); + bWord = implGetWordBoundary( sText, aBoundary, nextWord ); } if ( bWord && implIsValidBoundary( aBoundary, nLength ) ) |