summaryrefslogtreecommitdiff
path: root/sc/source/core/tool/calcconfig.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/tool/calcconfig.cxx')
-rw-r--r--sc/source/core/tool/calcconfig.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/core/tool/calcconfig.cxx b/sc/source/core/tool/calcconfig.cxx
index 4525df730484..6bafa226e8b5 100644
--- a/sc/source/core/tool/calcconfig.cxx
+++ b/sc/source/core/tool/calcconfig.cxx
@@ -111,8 +111,10 @@ void ScCalcConfig::setOpenCLConfigToDefault()
static OpCodeSet pDefaultOpenCLSubsetOpCodes(new std::set<OpCode>({
ocAdd,
ocSub,
+ ocNegSub,
ocMul,
ocDiv,
+ ocPow,
ocRandom,
ocSin,
ocCos,
@@ -236,6 +238,9 @@ ScCalcConfig::OpCodeSet ScStringToOpCodeSet(const OUString& rOpCodes)
}
fromIndex = semicolon+1;
}
+ // HACK: Both unary and binary minus have the same string but different opcodes.
+ if( result->find( ocSub ) != result->end())
+ result->insert( ocNegSub );
return result;
}