[Libreoffice-commits] core.git: svx/source
Caolán McNamara
caolanm at redhat.com
Mon May 13 08:51:52 PDT 2013
svx/source/dialog/hdft.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit d92643a5c191130da48e4077cf535594bba64870
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon May 13 16:49:07 2013 +0100
If the first page toggle is hidden, don't set first page to true
i.e. in calc format->page->ok->format->page would end up showing
the first page toggle as visible and enabled, and calc doesn't
have the first page feature
Change-Id: I8bf320fd4d630043ddfc7a9b70c402dbac1d6691
diff --git a/svx/source/dialog/hdft.cxx b/svx/source/dialog/hdft.cxx
index b987f43..1c2d2fb 100644
--- a/svx/source/dialog/hdft.cxx
+++ b/svx/source/dialog/hdft.cxx
@@ -253,7 +253,8 @@ sal_Bool SvxHFPage::FillItemSet( SfxItemSet& rSet )
aSet.Put( SfxBoolItem( nWOn, m_pTurnOnBox->IsChecked() ) );
aSet.Put( SfxBoolItem( nWDynamic, m_pHeightDynBtn->IsChecked() ) );
aSet.Put( SfxBoolItem( nWShared, m_pCntSharedBox->IsChecked() ) );
- aSet.Put( SfxBoolItem( nWSharedFirst, m_pCntSharedFirstBox->IsChecked() ) );
+ if(m_pCntSharedFirstBox->IsVisible())
+ aSet.Put( SfxBoolItem( nWSharedFirst, m_pCntSharedFirstBox->IsChecked() ) );
if(m_pDynSpacingCB->IsVisible() && SFX_WHICH_MAX > nWDynSpacing)
{
SfxBoolItem* pBoolItem = (SfxBoolItem*)pPool->GetDefaultItem(nWDynSpacing).Clone();
More information about the Libreoffice-commits
mailing list