diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-08-31 19:59:29 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-09-01 06:38:06 +0000 |
commit | 95bfa2c03d9dacd73670071c8108285dfc0f7830 (patch) | |
tree | 44c0ff707adc0f47f44f784ea5a18954e4463c39 /sfx2 | |
parent | d22525fcb03497a38ef5c9308ae7b50416ea9fb2 (diff) |
use SfxItemPool::IsSlot instead of custom implementation
Change-Id: I435fb78f10f361120ee1865465dab93aa4661806
Reviewed-on: https://gerrit.libreoffice.org/28565
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/bindings.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx index a068ab383d8f..3b782f1edbfa 100644 --- a/sfx2/source/control/bindings.cxx +++ b/sfx2/source/control/bindings.cxx @@ -1361,7 +1361,7 @@ void SfxBindings::UpdateControllers_Impl pCache->SetState( SfxItemState::DONTCARE, reinterpret_cast<SfxPoolItem *>(-1) ); } else if ( SfxItemState::DEFAULT == eState && - rFound.nWhichId > SFX_WHICH_MAX ) + SfxItemPool::IsSlot(rFound.nWhichId) ) { // no Status or Default but without Pool SfxVoidItem aVoid(0); |