Kaydet (Commit) 1c5bebef authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1187664 Dereference after null check

Change-Id: I3e8d8540b055fdcad0379e9bd7a78b3dafed435d
üst a3a2ccc5
...@@ -165,7 +165,8 @@ void ScViewFunc::PasteDraw( const Point& rLogicPos, SdrModel* pModel, ...@@ -165,7 +165,8 @@ void ScViewFunc::PasteDraw( const Point& rLogicPos, SdrModel* pModel,
if (nDiffX!=0 || nDiffY!=0) if (nDiffX!=0 || nDiffY!=0)
pNeuObj->NbcMove(Size(nDiffX,nDiffY)); pNeuObj->NbcMove(Size(nDiffX,nDiffY));
pDestPage->InsertObject( pNeuObj ); if (pDestPage)
pDestPage->InsertObject( pNeuObj );
pScDrawView->AddUndo(new SdrUndoInsertObj( *pNeuObj )); pScDrawView->AddUndo(new SdrUndoInsertObj( *pNeuObj ));
if (ScDrawLayer::IsCellAnchored(*pNeuObj)) if (ScDrawLayer::IsCellAnchored(*pNeuObj))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment