diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-28 15:39:20 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-28 15:52:29 +0000 |
commit | 08b7af126e546bdbd175023429f544baa9861dba (patch) | |
tree | d9b65dde4bdda8848ec1988502aafba6a9ca6527 /sc | |
parent | 47c6eef77378d96d0921c76ec14c338169f14dbe (diff) |
Related: fdo#69641 check index against length before iterateCodePoints
Change-Id: I71346b12fcfe3e02015038c3c78db574ada873d6
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/interpr1.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index 04c484feb15e..d1e008a50cff 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -3190,11 +3190,11 @@ void ScInterpreter::ScNumberValue() { OUString aTemporary( nDecSep >= 0 ? aInputString.copy( 0, nDecSep ) : aInputString ); sal_Int32 nIndex = 0; - do + while (nIndex < aGroupSeparator.getLength()) { sal_uInt32 nChar = aGroupSeparator.iterateCodePoints( &nIndex ); aTemporary = aTemporary.replaceAll( OUString( &nChar, 1 ), "" ); - } while ( nIndex < aGroupSeparator.getLength() ); + } if ( nDecSep >= 0 ) aInputString = aTemporary + aInputString.copy( nDecSep ); else |