summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-08-31 19:58:14 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-09-01 06:46:46 +0000
commit705574be7ab3425ce7e43b38771b4f7e1b246f27 (patch)
tree3b16e9cd7f078882d77ae881dee141ac77a55e63 /svx/source
parentc48f940cf888816b3282b1c82136f57c010f1236 (diff)
use SfxItemPool::IsWhich instead of custom implementation
Change-Id: I56cbdc1ede491486643f73a98117c5cd4ce77c1d Reviewed-on: https://gerrit.libreoffice.org/28564 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/dialog/hdft.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/dialog/hdft.cxx b/svx/source/dialog/hdft.cxx
index 318ae321b22e..55b209457f6b 100644
--- a/svx/source/dialog/hdft.cxx
+++ b/svx/source/dialog/hdft.cxx
@@ -277,7 +277,7 @@ bool SvxHFPage::FillItemSet( SfxItemSet* rSet )
aSet.Put( SfxBoolItem( nWShared, m_pCntSharedBox->IsChecked() ) );
if(m_pCntSharedFirstBox->IsVisible())
aSet.Put( SfxBoolItem( nWSharedFirst, m_pCntSharedFirstBox->IsChecked() ) );
- if(m_pDynSpacingCB->IsVisible() && SFX_WHICH_MAX > nWDynSpacing)
+ if (m_pDynSpacingCB->IsVisible() && SfxItemPool::IsWhich(nWDynSpacing))
{
std::unique_ptr<SfxBoolItem> pBoolItem(static_cast<SfxBoolItem*>(pPool->GetDefaultItem(nWDynSpacing).Clone()));
pBoolItem->SetValue(m_pDynSpacingCB->IsChecked());