summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-14 12:25:09 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-14 15:02:45 +0100
commitf3b97a1e8dbe65873af3a7420b4cdd6e1a919307 (patch)
treeb48430b67c757ad20de3dcc2a16d56b5fb41dcac /svx
parent98cd13b114883d2bbdb07cc57e5e91b18194083e (diff)
coverity#735879 Dereference after null check
Change-Id: I2a0fa04be569ae567719a8829b42796eadff28b6
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdundo.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdundo.cxx b/svx/source/svdraw/svdundo.cxx
index e2e4f53cecba..6b6e676748fe 100644
--- a/svx/source/svdraw/svdundo.cxx
+++ b/svx/source/svdraw/svdundo.cxx
@@ -790,8 +790,7 @@ void SdrUndoInsertObj::Redo()
// which becomes a member of a group, because its cleared in method
// <InsertObject(..)>. Needed for correct Redo in Writer. (#i45952#)
Point aAnchorPos( 0, 0 );
- if ( pObjList &&
- dynamic_cast<const SdrObjGroup*>(pObjList->GetOwnerObj()) != nullptr )
+ if (dynamic_cast<const SdrObjGroup*>(pObjList->GetOwnerObj()) != nullptr)
{
aAnchorPos = pObj->GetAnchorPos();
}