Kaydet (Commit) df06ddf7 authored tarafından Eike Rathke's avatar Eike Rathke

tdf#44419 in second reference part stop number parsing at separator

Change-Id: I70218bc41df0d56ab42d652aa7ac51733dc06f4b
(cherry picked from commit 71dba79c)
üst 882f8dd0
...@@ -2484,6 +2484,18 @@ Label_MaskStateMachine: ...@@ -2484,6 +2484,18 @@ Label_MaskStateMachine:
} }
else else
{ {
// When having parsed a second reference part, ensure that the
// i18n parser did not mistakingly parse a number that included
// a separator which happened to be meant as a parameter
// separator instead.
if (mnRangeOpPosInSymbol >= 0 && (aRes.TokenType & KParseType::ASC_NUMBER))
{
for (sal_Int32 i = nSrcPos; i < aRes.EndPos; ++i)
{
if (pStart[i] == cSep)
aRes.EndPos = i; // also ends for
}
}
aSymbol.append( pStart + nSrcPos, aRes.EndPos - nSrcPos); aSymbol.append( pStart + nSrcPos, aRes.EndPos - nSrcPos);
nSrcPos = aRes.EndPos; nSrcPos = aRes.EndPos;
c = pStart[nSrcPos]; c = pStart[nSrcPos];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment