Kaydet (Commit) 5cb4004a authored tarafından Jack Leigh's avatar Jack Leigh Kaydeden (comit) Caolán McNamara

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/1272Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst a86919b4
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment