summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJack Leigh <leighman@gmx.se>2012-12-08 21:12:23 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-12-10 13:48:26 +0000
commit5cb4004a443910c6eefb0b58f1fc4ed3e20ba36c (patch)
tree4a137b6183a07290ea8ac008dbbca36970a0454b /sw
parenta86919b485bef8850ef62cf8ad3543ba58e0f331 (diff)
fdo#38895 fix toggling of numbering separator on Autocaption page
Only enable the Edit box if the overall option is enabled Change-Id: Ica0f973d22b89a37bd690c285d7cc0ae5204b7a8 Reviewed-on: https://gerrit.libreoffice.org/1272 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/config/optload.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/sw/source/ui/config/optload.cxx b/sw/source/ui/config/optload.cxx
index f3fd60478482..fbdd800a5caa 100644
--- a/sw/source/ui/config/optload.cxx
+++ b/sw/source/ui/config/optload.cxx
@@ -819,9 +819,17 @@ IMPL_LINK_NOARG_INLINE_END(SwCaptionOptPage, SelectHdl)
IMPL_LINK( SwCaptionOptPage, OrderHdl, ListBox*, pBox )
{
DrawSample();
+
+ SvTreeListEntry* pSelEntry = aCheckLB.FirstSelected();
+ sal_Bool bChecked = sal_False;
+ if (pSelEntry)
+ {
+ bChecked = aCheckLB.IsChecked((sal_uInt16)aCheckLB.GetModel()->GetAbsPos(pSelEntry));
+ }
+
sal_Int32 nPos = pBox->GetSelectEntryPos();
- aNumberingSeparatorFT.Enable( nPos == 1 );
- aNumberingSeparatorED.Enable( nPos == 1 );
+ aNumberingSeparatorFT.Enable( bChecked && nPos == 1 );
+ aNumberingSeparatorED.Enable( bChecked && nPos == 1 );
return 0;
}