diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-19 11:17:01 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-19 15:37:54 +0000 |
commit | c2ea2e6ca99395cc6d9ea8f2edf009252dc87957 (patch) | |
tree | 23a63bf7378cc3a6a8806178a4bff8a5887300c3 /sw | |
parent | 5caeb976d56f9df2cffbf98fa0bc0c552c60e1f6 (diff) |
coverity#704901 Dereference after null check
Change-Id: I3e2ad2d3dd1713336b1a01cb7a2b1ff28bb833ea
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/fly.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/core/layout/fly.cxx b/sw/source/core/layout/fly.cxx index 48ab36b5badd..809f14005b44 100644 --- a/sw/source/core/layout/fly.cxx +++ b/sw/source/core/layout/fly.cxx @@ -805,6 +805,7 @@ void SwFlyFrm::_UpdateAttr( const SfxPoolItem *pOld, const SfxPoolItem *pNew, } case RES_COL: + if (pOld && pNew) { ChgColumns( *(const SwFmtCol*)pOld, *(const SwFmtCol*)pNew ); const SwFmtFrmSize &rNew = GetFmt()->GetFrmSize(); |