summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-09-11 14:29:58 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-28 08:48:46 +0100
commit6fe55ee6071c97d5784e2142a644f2044b77f250 (patch)
tree532323cb4d3c2de37a0bc4c6aa547394714d29b7
parent3afe966bc21650acafdf670c8ef6bb80fe382018 (diff)
desensitive row seperator with global on/off numbering
Change-Id: I380249ab6e3d2fc77768b3d1680c7e49fc3a18ba
-rw-r--r--sw/source/ui/misc/linenum.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/ui/misc/linenum.cxx b/sw/source/ui/misc/linenum.cxx
index 09f90d0bf7a9..96e90c1a0a2d 100644
--- a/sw/source/ui/misc/linenum.cxx
+++ b/sw/source/ui/misc/linenum.cxx
@@ -201,11 +201,11 @@ IMPL_LINK_NOARG(SwLineNumberingDlg, OKHdl)
--------------------------------------------------------------------*/
IMPL_LINK_NOARG(SwLineNumberingDlg, ModifyHdl)
{
- bool bHasValue = m_pDivisorED->GetText().Len() != 0;
+ bool bEnable = m_pNumberingOnCB->IsChecked() && m_pDivisorED->GetText().Len() != 0;
- m_pDivIntervalFT->Enable(bHasValue);
- m_pDivIntervalNF->Enable(bHasValue);
- m_pDivRowsFT->Enable(bHasValue);
+ m_pDivIntervalFT->Enable(bEnable);
+ m_pDivIntervalNF->Enable(bEnable);
+ m_pDivRowsFT->Enable(bEnable);
return 0;
}