diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-05-13 16:49:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-05-13 16:51:31 +0100 |
commit | d92643a5c191130da48e4077cf535594bba64870 (patch) | |
tree | e65d17ad950445ad05a6c8672889f3e90fb91036 /svx | |
parent | ce4f51c714d5aa6f2f44cc7de89596f8e72cb600 (diff) |
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
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/hdft.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/dialog/hdft.cxx b/svx/source/dialog/hdft.cxx index b987f439f904..1c2d2fbe3412 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(); |