summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-08-31 19:59:29 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-09-01 06:38:06 +0000
commit95bfa2c03d9dacd73670071c8108285dfc0f7830 (patch)
tree44c0ff707adc0f47f44f784ea5a18954e4463c39 /editeng
parentd22525fcb03497a38ef5c9308ae7b50416ea9fb2 (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 'editeng')
-rw-r--r--editeng/source/rtf/rtfitem.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/rtf/rtfitem.cxx b/editeng/source/rtf/rtfitem.cxx
index fe6440979752..1e4efcfc7524 100644
--- a/editeng/source/rtf/rtfitem.cxx
+++ b/editeng/source/rtf/rtfitem.cxx
@@ -1758,7 +1758,7 @@ void SvxRTFParser::RTFPardPlain( bool const bPard, SfxItemSet** ppSet )
// Item set and different -> Set the Default Pool
if( !*pPtr )
;
- else if( SFX_WHICH_MAX < *pPtr )
+ else if (SfxItemPool::IsSlot(*pPtr))
pAkt->aAttrSet.ClearItem( *pPtr );
else if( IsChkStyleAttr() )
pAkt->aAttrSet.Put( pDfltSet->Get( *pPtr ) );