offapi/com/sun/star/accessibility/XAccessibleText.idl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 6cd1cc14a9e92cf293f4d2b414f85c879e86d65d Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Tue Jun 17 12:19:33 2025 +0200 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Wed Jun 18 07:18:26 2025 +0200 a11y: Fix indices in XAccessibleText::getText doc In order to get the whole text, the character count needs to be passed as the end index, since this is the "past the last character" index, see also the XAccessibleText::getTextRange doc: @param nEndIndex Index of the last character to exclude in the returned string. The valid range is 0..length. Change-Id: I45a1cb65b6ce9e6d1005b3b455bc6a0238b83027 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186606 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/offapi/com/sun/star/accessibility/XAccessibleText.idl b/offapi/com/sun/star/accessibility/XAccessibleText.idl index 4f7066a82746..9e5cc487a878 100644 --- a/offapi/com/sun/star/accessibility/XAccessibleText.idl +++ b/offapi/com/sun/star/accessibility/XAccessibleText.idl @@ -300,7 +300,7 @@ interface XAccessibleText : ::com::sun::star::uno::XInterface <p>Returns the complete text. This is equivalent to a call to XAccessibleText::getTextRange() with the arguments - zero and <code>getCharacterCount()-1</code>.</p> + 0 and <code>getCharacterCount()</code>.</p> @return Returns a string that contains the complete text.