Index returned by getToken is always lower than string length
Change-Id: I7de7a3eaf7b4ae6ef97b0c23fb755ad108db19e6 Reviewed-on: https://gerrit.libreoffice.org/68118 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
This commit is contained in:
@@ -1685,9 +1685,7 @@ void FormulaProcessorBase::convertStringToStringList(
|
|||||||
if( extractString( aString, orTokens ) && !aString.isEmpty() )
|
if( extractString( aString, orTokens ) && !aString.isEmpty() )
|
||||||
{
|
{
|
||||||
::std::vector< ApiToken > aNewTokens;
|
::std::vector< ApiToken > aNewTokens;
|
||||||
sal_Int32 nPos = 0;
|
for( sal_Int32 nPos{ 0 }; nPos>=0; )
|
||||||
sal_Int32 nLen = aString.getLength();
|
|
||||||
while( (0 <= nPos) && (nPos < nLen) )
|
|
||||||
{
|
{
|
||||||
OUString aEntry = aString.getToken( 0, cStringSep, nPos );
|
OUString aEntry = aString.getToken( 0, cStringSep, nPos );
|
||||||
if( bTrimLeadingSpaces )
|
if( bTrimLeadingSpaces )
|
||||||
|
Reference in New Issue
Block a user