diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-11 19:13:44 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-11 21:05:57 +0100 |
commit | 7ad148c17ac55beff60b23ae973f4ebb7b599980 (patch) | |
tree | 732df1b7e53af6fd7a3bac9d2a639c49a0dff9ec /sw | |
parent | 5a1a10e8bf9d9125d981d71761f8f11d55e317d5 (diff) |
coverity#736853 Dereference before null check
Change-Id: I13dcfdc1d424ef115dcb665d91648decdc7176d7
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unodraw.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx index ac0a415b846c..229ae117ab5e 100644 --- a/sw/source/core/unocore/unodraw.cxx +++ b/sw/source/core/unocore/unodraw.cxx @@ -348,7 +348,7 @@ uno::Reference< drawing::XShape > SwFmDrawPage::_CreateShape( SdrObject *pObj ) uno::Reference< uno::XInterface > xCreate(xRet, uno::UNO_QUERY); xRet = 0; uno::Reference< beans::XPropertySet > xPrSet; - if ( pObj->IsGroupObject() && (!pObj->Is3DObj() || ( PTR_CAST(E3dScene,pObj ) != NULL ) ) ) + if ( pObj->IsGroupObject() && (!pObj->Is3DObj() || (pObj->ISA(E3dScene))) ) xPrSet = new SwXGroupShape( xCreate ); else xPrSet = new SwXShape( xCreate ); |