diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-09-18 16:47:15 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-09-19 17:03:27 +0200 |
commit | dbedabaa44d2fda306cd4b5bb51d192fc1058794 (patch) | |
tree | c527bc28746264082b50c78651219c65b839a023 /sc | |
parent | 5d0b4a5ae3806c4816e1fbe39514cbf52adfb229 (diff) |
fix storing of open cl device in configuration files
Change-Id: Icc343b55fe40c430b87d2e4c98701d78c61e3a96
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/formulaopt.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/core/tool/formulaopt.cxx b/sc/source/core/tool/formulaopt.cxx index f6499272ef64..1ce5e0994541 100644 --- a/sc/source/core/tool/formulaopt.cxx +++ b/sc/source/core/tool/formulaopt.cxx @@ -216,7 +216,7 @@ Sequence<OUString> ScFormulaCfg::GetPropertyNames() "Load/ODFRecalcMode", // SCFORMULAOPT_ODF_RECALC "Calculation/OpenCL", // SCFORMULAOPT_OPENCL_ENABLED "Calculation/OpenCLAutoSelect", // SCFORMULAOPT_OPENCL_AUTOSELECT - "Calculation/OpenCLAutoDevice" // SCFORMULAOPT_OPENCL_DEVICE + "Calculation/OpenCLDevice" // SCFORMULAOPT_OPENCL_DEVICE }; Sequence<OUString> aNames(SCFORMULAOPT_COUNT); OUString* pNames = aNames.getArray(); @@ -428,6 +428,7 @@ void ScFormulaCfg::UpdateFromProperties( const Sequence<OUString>& aNames ) pValues[nProp] >>= aOpenCLDevice; GetCalcConfig().maOpenCLDevice = aOpenCLDevice; } + break; default: ; } @@ -540,6 +541,8 @@ void ScFormulaCfg::Commit() { sal_Bool bVal = GetCalcConfig().mbOpenCLAutoSelect; pValues[nProp] <<= bVal; + sc::FormulaGroupInterpreter::switchOpenCLDevice( + GetCalcConfig().maOpenCLDevice, bVal); } break; case SCFORMULAOPT_OPENCL_DEVICE: |