summaryrefslogtreecommitdiff
path: root/svx/source/accessibility
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2006-12-13 13:58:16 +0000
committerKurt Zenker <kz@openoffice.org>2006-12-13 13:58:16 +0000
commit0f766b18ed548678bf91ff091db0875057fc616e (patch)
treea0e2af8135a7730183efccf2e7832c80237df616 /svx/source/accessibility
parentbb504cc993272c37530834435f27c2357ff8b91a (diff)
INTEGRATION: CWS presfixes09 (1.45.114); FILE MERGED
2006/10/18 16:04:45 thb 1.45.114.3: RESYNC: (1.48-1.50); FILE MERGED 2006/09/15 18:05:26 thb 1.45.114.2: RESYNC: (1.45-1.48); FILE MERGED 2006/05/02 12:05:03 thb 1.45.114.1: #i63566# Fixed infinite loop
Diffstat (limited to 'svx/source/accessibility')
-rw-r--r--svx/source/accessibility/AccessibleEditableTextPara.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/svx/source/accessibility/AccessibleEditableTextPara.cxx b/svx/source/accessibility/AccessibleEditableTextPara.cxx
index 9522eb65076d..e516d65c0cbd 100644
--- a/svx/source/accessibility/AccessibleEditableTextPara.cxx
+++ b/svx/source/accessibility/AccessibleEditableTextPara.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: AccessibleEditableTextPara.cxx,v $
*
- * $Revision: 1.50 $
+ * $Revision: 1.51 $
*
- * last change: $Author: obo $ $Date: 2006-10-12 12:00:34 $
+ * last change: $Author: kz $ $Date: 2006-12-13 14:58:16 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -314,10 +314,11 @@ namespace accessibility
if( nIndex == nTextLen )
{
// #i17014# Special-casing one-behind-the-end character
- rBoundary.startPos = 0;
- while( nLineCount > 1 )
- rBoundary.startPos += rCacheTF.GetLineLen( static_cast< USHORT >( nParaIndex ),
- nLineCount-2 );
+ if( nLineCount <= 1 )
+ rBoundary.startPos = 0;
+ else
+ rBoundary.startPos = nTextLen - rCacheTF.GetLineLen( static_cast< USHORT >( nParaIndex ),
+ nLineCount-1 );
rBoundary.endPos = nTextLen;
}