cui/source/options/optopencl.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 6ebca1d1094d8fd85e485e504e810a1954befcc3
Author: Andras Timar <andras.ti...@collabora.com>
Date:   Wed Sep 7 21:00:35 2016 +0200

    check for read-only state of OpenCL settings
    
    Change-Id: Ia3695d5e4901e527ef847a86e737f6c7eba5085f
    Reviewed-on: https://gerrit.libreoffice.org/28730
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/cui/source/options/optopencl.cxx b/cui/source/options/optopencl.cxx
index 6b5d1f9..41cdb66 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();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to