summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2016-09-07 21:00:35 +0200
committerCaolán McNamara <caolanm@redhat.com>2016-09-10 09:15:47 +0000
commit6ebca1d1094d8fd85e485e504e810a1954befcc3 (patch)
treeb75a102902f033a9bbc224ea69cde704375f5713 /cui
parentdf3dbec57ec286baa61677a694ae821e7408bc92 (diff)
check for read-only state of OpenCL settings
Change-Id: Ia3695d5e4901e527ef847a86e737f6c7eba5085f Reviewed-on: https://gerrit.libreoffice.org/28730 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optopencl.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/cui/source/options/optopencl.cxx b/cui/source/options/optopencl.cxx
index 6b5d1f9f8372..41cdb66c742d 100644
--- a/cui/source/options/optopencl.cxx
+++ b/cui/source/options/optopencl.cxx
@@ -51,8 +51,10 @@ SvxOpenCLTabPage::SvxOpenCLTabPage(vcl::Window* pParent, const SfxItemSet& rSet)
get(mpOclNotUsed,"openclnotused");
mpUseSwInterpreter->Check(officecfg::Office::Common::Misc::UseSwInterpreter::get());
+ mpUseSwInterpreter->Enable(!officecfg::Office::Common::Misc::UseSwInterpreter::isReadOnly());
mpUseOpenCL->Check(maConfig.mbUseOpenCL);
+ mpUseOpenCL->Enable(!officecfg::Office::Common::Misc::UseOpenCL::isReadOnly());
mpUseOpenCL->SetClickHdl(LINK(this, SvxOpenCLTabPage, EnableOpenCLHdl));
bool bCLUsed = opencl::GPUEnv::isOpenCLEnabled();