diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-07 11:47:24 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-07 12:19:25 +0000 |
commit | 12aab9c087770d2cb056f66d5f0f289d63771edd (patch) | |
tree | 21ee453924620f92af866a985e81e9240ee59dfd /sd | |
parent | 78cbc6de1b87134dcc0417537d270d49cbc8de38 (diff) |
coverity#735831 Dereference after null check
Change-Id: Ic41ed1f547a42668b17ec0c0d35a7cf2054c509c
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/core/sdpage.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/core/sdpage.cxx b/sd/source/core/sdpage.cxx index 885130b0a427..c25b658d6778 100644 --- a/sd/source/core/sdpage.cxx +++ b/sd/source/core/sdpage.cxx @@ -2200,7 +2200,7 @@ SdrObject* convertPresentationObjectImpl( SdPage& rPage, SdrObject* pSourceObj, */ SdrObject* SdPage::InsertAutoLayoutShape( SdrObject* pObj, PresObjKind eObjKind, bool bVertical, Rectangle aRect, bool bInit ) { - ::svl::IUndoManager* pUndoManager = pModel ? static_cast<SdDrawDocument*>(pModel)->GetUndoManager() : 0; + ::svl::IUndoManager* pUndoManager = static_cast<SdDrawDocument*>(pModel)->GetUndoManager(); const bool bUndo = pUndoManager && pUndoManager->IsInListAction() && IsInserted(); if (!pObj && bInit) |