From 6ebca1d1094d8fd85e485e504e810a1954befcc3 Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Wed, 7 Sep 2016 21:00:35 +0200 Subject: check for read-only state of OpenCL settings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ia3695d5e4901e527ef847a86e737f6c7eba5085f Reviewed-on: https://gerrit.libreoffice.org/28730 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- cui/source/options/optopencl.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cui/source/options/optopencl.cxx') 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(); -- cgit