sw/source/ui/config/optload.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 89d77f9d96bbdb8385a49812c731ebbd8e331912
Author: Andras Timar <andras.ti...@collabora.com>
Date:   Fri Sep 9 10:19:47 2016 +0200

    handle read-only state of wordcount settings
    
    Change-Id: I1ece8611bbc2d3635abf7270418cefe2834b797b
    Reviewed-on: https://gerrit.libreoffice.org/28762
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sw/source/ui/config/optload.cxx b/sw/source/ui/config/optload.cxx
index cde9a8b..214a961 100644
--- a/sw/source/ui/config/optload.cxx
+++ b/sw/source/ui/config/optload.cxx
@@ -345,10 +345,13 @@ void SwLoadOptPage::Reset( const SfxItemSet* rSet)
     m_pUseCharUnit->SaveValue();
 
     
m_pWordCountED->SetText(officecfg::Office::Writer::WordCount::AdditionalSeparators::get());
+    
m_pWordCountED->Enable(!officecfg::Office::Writer::WordCount::AdditionalSeparators::isReadOnly());
     m_pWordCountED->SaveValue();
     
m_pShowStandardizedPageCount->Check(officecfg::Office::Writer::WordCount::ShowStandardizedPageCount::get());
+    
m_pShowStandardizedPageCount->Enable(!officecfg::Office::Writer::WordCount::ShowStandardizedPageCount::isReadOnly());
     m_pShowStandardizedPageCount->SaveValue();
     
m_pStandardizedPageSizeNF->SetValue(officecfg::Office::Writer::WordCount::StandardizedPageSize::get());
+    
m_pStandardizedPageSizeNF->Enable(!officecfg::Office::Writer::WordCount::StandardizedPageSize::isReadOnly());
     m_pStandardizedPageSizeNF->SaveValue();
     
m_pStandardizedPageSizeNF->Enable(m_pShowStandardizedPageCount->IsChecked());
 }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to