CWS-TOOLING: integrate CWS os139_DEV300
This commit is contained in:
commit
a7b6f8c04d
1 changed files with 6 additions and 1 deletions
|
@ -54,12 +54,17 @@ void ScRefTokenHelper::compileRangeRepresentation(
|
|||
const sal_Unicode cSep = GetScCompilerNativeSymbol(ocSep).GetChar(0);
|
||||
const sal_Unicode cQuote = '\'';
|
||||
|
||||
// #i107275# ignore parentheses
|
||||
OUString aRangeStr = rRangeStr;
|
||||
while( (aRangeStr.getLength() >= 2) && (aRangeStr[ 0 ] == '(') && (aRangeStr[ aRangeStr.getLength() - 1 ] == ')') )
|
||||
aRangeStr = aRangeStr.copy( 1, aRangeStr.getLength() - 2 );
|
||||
|
||||
bool bFailure = false;
|
||||
sal_Int32 nOffset = 0;
|
||||
while (nOffset >= 0 && !bFailure)
|
||||
{
|
||||
OUString aToken;
|
||||
ScRangeStringConverter::GetTokenByOffset(aToken, rRangeStr, nOffset, cSep, cQuote);
|
||||
ScRangeStringConverter::GetTokenByOffset(aToken, aRangeStr, nOffset, cSep, cQuote);
|
||||
if (nOffset < 0)
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue