diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-10-24 12:52:52 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-10-24 12:52:52 +0000 |
commit | 04cdfd5a88caed284934d033d7aa4e0274c01e5f (patch) | |
tree | addf7a2dd21b738220b24ab4f8eabd4b3c7e4bd5 /svx | |
parent | b5e9b382f00b877f16e1b2c9d078b8258dc7c49a (diff) |
INTEGRATION: CWS tl29 (1.109.102); FILE MERGED
2006/09/20 08:44:01 tl 1.109.102.3: #i69416# iteration over text fixed
2006/09/12 11:20:12 tl 1.109.102.2: #i69416# avoid loop due to bug in breakiterator
2006/09/12 08:26:11 tl 1.109.102.1: #i69416# avoid lopp due to bug in breakiterator
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/editeng/impedit3.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/svx/source/editeng/impedit3.cxx b/svx/source/editeng/impedit3.cxx index ea8391991e29..ae369636eeaf 100644 --- a/svx/source/editeng/impedit3.cxx +++ b/svx/source/editeng/impedit3.cxx @@ -4,9 +4,9 @@ * * $RCSfile: impedit3.cxx,v $ * - * $Revision: 1.113 $ + * $Revision: 1.114 $ * - * last change: $Author: obo $ $Date: 2006-10-12 12:39:32 $ + * last change: $Author: hr $ $Date: 2006-10-24 13:52:52 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -2084,10 +2084,15 @@ void ImpEditEngine::ImpFindKashidas( ContentNode* pNode, USHORT nStart, USHORT n while ( ( aWordSel.Min().GetNode() == pNode ) && ( aWordSel.Min().GetIndex() < nEnd ) ) { + USHORT nSavPos = aWordSel.Max().GetIndex(); if ( aWordSel.Max().GetIndex() > nEnd ) aWordSel.Max().GetIndex() = nEnd; String aWord = GetSelected( aWordSel ); + + // restore selection for proper iteration at the end of the function + aWordSel.Max().GetIndex() = nSavPos; + xub_StrLen nIdx = 0; xub_StrLen nKashidaPos = STRING_LEN; xub_Unicode cCh; |