diff options
author | Eike Rathke <erack@redhat.com> | 2015-06-25 22:54:37 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-06-25 22:57:01 +0200 |
commit | 71dba79c1c84d693a59c53a8965caef0ddd1c2cc (patch) | |
tree | 3ee29e6a4f8c8a76f3e7d9fe52802a4a78a061c6 /sc | |
parent | 3b1cb077a58c325e5a790f7c6a248a7dc150496b (diff) |
tdf#44419 in second reference part stop number parsing at separator
Change-Id: I70218bc41df0d56ab42d652aa7ac51733dc06f4b
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/compiler.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index 3594f0e675a3..9d0a03a4dcb5 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -2483,6 +2483,18 @@ Label_MaskStateMachine: } 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); nSrcPos = aRes.EndPos; c = pStart[nSrcPos]; |