[Libreoffice-commits] core.git: sc/source
Kohei Yoshida
kohei.yoshida at collabora.com
Tue Dec 31 12:35:35 PST 2013
sc/source/core/tool/formulagroup.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 37488b56d33533ad6d705c6d2e16eb6b5af67f65
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date: Tue Dec 31 15:34:03 2013 -0500
Honor selected device detection settings.
This fixes the problem of the software interpreter always getting selected
after initial startup where the settings are read from user configuration.
Change-Id: Iecbb7ae644c1264811f5280e1425a8dd776c2c1a
diff --git a/sc/source/core/tool/formulagroup.cxx b/sc/source/core/tool/formulagroup.cxx
index 8536a94..4e13ad3 100644
--- a/sc/source/core/tool/formulagroup.cxx
+++ b/sc/source/core/tool/formulagroup.cxx
@@ -545,7 +545,10 @@ FormulaGroupInterpreter *FormulaGroupInterpreter::getStatic()
if ( !msInstance )
{
- switchOpenCLDevice(OUString(), ScInterpreter::GetGlobalConfig().mbOpenCLEnabled);
+ const ScCalcConfig& rConfig = ScInterpreter::GetGlobalConfig();
+ if (rConfig.mbOpenCLEnabled)
+ switchOpenCLDevice(rConfig.maOpenCLDevice, rConfig.mbOpenCLAutoSelect, false);
+
if ( !msInstance ) // software fallback
{
fprintf(stderr, "Create S/W interp\n");
More information about the Libreoffice-commits
mailing list