summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/unoobj/docuno.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 56d5a6148d8d..e35e2c30fe6c 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -2833,7 +2833,9 @@ void ScModelObj::enableOpenCL(sal_Bool bEnable)
aConfig.setOpenCLConfigToDefault();
ScInterpreter::SetGlobalConfig(aConfig);
+#if HAVE_FEATURE_OPENCL
sc::FormulaGroupInterpreter::switchOpenCLDevice(OUString(), true, false);
+#endif
ScDocument* pDoc = GetDocument();
pDoc->CheckVectorizationState();