[Libreoffice-commits] .: Branch 'feature/cmclayouttrans' - sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Sep 11 06:30:38 PDT 2012
sw/source/ui/misc/linenum.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 429235f5603bb136b12ad7c8c1ce187995aa894e
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Sep 11 14:29:58 2012 +0100
desensitive row seperator with global on/off numbering
Change-Id: I380249ab6e3d2fc77768b3d1680c7e49fc3a18ba
diff --git a/sw/source/ui/misc/linenum.cxx b/sw/source/ui/misc/linenum.cxx
index 7d37e28..eae93c3 100644
--- a/sw/source/ui/misc/linenum.cxx
+++ b/sw/source/ui/misc/linenum.cxx
@@ -207,11 +207,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;
}
More information about the Libreoffice-commits
mailing list