diff options
author | Eike Rathke <erack@redhat.com> | 2015-03-05 19:09:40 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-03-05 22:04:15 +0100 |
commit | cca2f93eeda560203ac31f44eaf5b5998762afab (patch) | |
tree | 7e5d8017da968e0f0bb43b3f4135b23c94066d3e /sc/source | |
parent | 3b76732e89715ce77b2619230e36f8289958acff (diff) |
don't count table ref item separator as parameter separator
... similar to ocArrayOpen,ocArrayClose
Change-Id: I10b4cd2f74167cc57ef7a2ed96e0e98f0cd86805
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/tool/compiler.cxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index 5d6ba70ba302..053af69fe38e 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -3847,6 +3847,23 @@ ScTokenArray* ScCompiler::CompileString( const OUString& rFormula ) if (bUseFunctionStack && nFunction) --nFunction; } + case ocTableRefOpen: + { + // Don't count following item separator as parameter separator. + if (bUseFunctionStack) + { + ++nFunction; + pFunctionStack[ nFunction ].eOp = eOp; + pFunctionStack[ nFunction ].nSep = 0; + } + } + break; + case ocTableRefClose: + { + if (bUseFunctionStack && nFunction) + --nFunction; + } + break; default: break; } |