summaryrefslogtreecommitdiff
path: root/sw/source/ui/config
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2016-09-09 10:19:47 +0200
committerCaolán McNamara <caolanm@redhat.com>2016-09-09 10:44:25 +0000
commit89d77f9d96bbdb8385a49812c731ebbd8e331912 (patch)
tree79dec2fe8f3eeeb02ea7e07a5c2741992506fce4 /sw/source/ui/config
parent6744039f1becbc182445685a5cba3ed8a0be2705 (diff)
handle read-only state of wordcount settings
Change-Id: I1ece8611bbc2d3635abf7270418cefe2834b797b Reviewed-on: https://gerrit.libreoffice.org/28762 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/ui/config')
-rw-r--r--sw/source/ui/config/optload.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/ui/config/optload.cxx b/sw/source/ui/config/optload.cxx
index cde9a8b91b0c..214a961b848d 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());
}