diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-11-03 14:04:51 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-11-06 11:49:24 +0200 |
commit | c78b58e1a1950ea78dc0f9a5d8abe2fc228b08c2 (patch) | |
tree | a222a1b86fc8f957b950d36e24aa9d2dc06b8b0a /sc | |
parent | 8dd9c5c8b1dc6baa50db3c190762cdc92b609049 (diff) |
Check also unary and binary operation opcodes for presence in subset
Change-Id: I316ebdb017d512e72d0ad15a847802bca0e15814
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/token.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx index 46fd5a4e8331..93c3463eaafe 100644 --- a/sc/source/core/tool/token.cxx +++ b/sc/source/core/tool/token.cxx @@ -1454,6 +1454,16 @@ void ScTokenArray::CheckToken( const FormulaToken& r ) default: ; } + return; + } + + if (eOp >= SC_OPCODE_START_BIN_OP && + eOp <= SC_OPCODE_STOP_UN_OP && + ScInterpreter::GetGlobalConfig().mbOpenCLSubsetOnly && + ScInterpreter::GetGlobalConfig().maOpenCLSubsetFunctions.find(eOp) == ScInterpreter::GetGlobalConfig().maOpenCLSubsetFunctions.end()) + { + meVectorState = FormulaVectorDisabled; + return; } } |