CWS-TOOLING: integrate CWS os139_DEV300

This commit is contained in:
Vladimir Glazunov 2009-12-14 10:26:21 +01:00
commit a7b6f8c04d

View file

@ -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;