diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-01-25 01:08:22 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-01-25 03:10:54 -0600 |
commit | 83924113beb0ebfd6abbe6f8ca44fb929da0934c (patch) | |
tree | 6c6a41816131413955ffcae13d70725128f2b43d /svx | |
parent | 5d8bd348ec1c136ce423bc76cd06bf91d96f54e4 (diff) |
coverity#704842 Dereference after NULL check
Change-Id: If74a78ffe0bcbd936448ed70b8fc796561fc7001
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/unodraw/unopool.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/unodraw/unopool.cxx b/svx/source/unodraw/unopool.cxx index 438bd49f14a4..08a610cfe165 100644 --- a/svx/source/unodraw/unopool.cxx +++ b/svx/source/unodraw/unopool.cxx @@ -188,7 +188,7 @@ void SvxUnoDrawPool::putAny( SfxItemPool* pPool, const comphelper::PropertyMapEn { ::std::auto_ptr<SfxPoolItem> pNewItem( pPool->GetDefaultItem( nWhich ).Clone() ); sal_uInt8 nMemberId = pEntry->mnMemberId & (~SFX_METRIC_ITEM); - if( !pPool || (pPool->GetMetric(nWhich) == SFX_MAPUNIT_100TH_MM) ) + if( pPool->GetMetric(nWhich) == SFX_MAPUNIT_100TH_MM ) nMemberId &= (~CONVERT_TWIPS); if( !pNewItem->PutValue( aValue, nMemberId ) ) |