summaryrefslogtreecommitdiff
path: root/comphelper/source/misc/accessibletexthelper.cxx
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2002-09-13 11:35:02 +0000
committerFrank Schönheit <fs@openoffice.org>2002-09-13 11:35:02 +0000
commit8532bf1aaa5e1c9f04683c641313b4934fdf4a81 (patch)
tree3e0a47fa844e3fcc3e506888b04696f43ae6eb83 /comphelper/source/misc/accessibletexthelper.cxx
parentd27ffd7351364199e728c90e54d35959d43eda10 (diff)
#103254# getTextAtIndex: 'length' as index is allowed according to the interface definition
Diffstat (limited to 'comphelper/source/misc/accessibletexthelper.cxx')
-rw-r--r--comphelper/source/misc/accessibletexthelper.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/comphelper/source/misc/accessibletexthelper.cxx b/comphelper/source/misc/accessibletexthelper.cxx
index c4b3b3f7269b..9bfc64983644 100644
--- a/comphelper/source/misc/accessibletexthelper.cxx
+++ b/comphelper/source/misc/accessibletexthelper.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: accessibletexthelper.cxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: tbe $ $Date: 2002-06-26 17:01:21 $
+ * last change: $Author: fs $ $Date: 2002-09-13 12:35:02 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -338,6 +338,11 @@ namespace comphelper
::rtl::OUString sText( implGetText() );
i18n::Boundary aBoundary;
+ // according to the interface definition, an index "length" is valid
+ // #103254# - 13.09.2002 - fs@openoffice.org
+ if ( sText.getLength() == nIndex )
+ return sResult;
+
if ( !implIsValidIndex( nIndex, sText.getLength() ) )
throw IndexOutOfBoundsException();