Kaydet (Commit) 3768b305 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#704751 Explicit null dereferenced

Change-Id: If95204a7e8e47ef62599da3374b6a2908e495493
üst 65ff0a58
......@@ -654,9 +654,11 @@ void FuObjectAnimationParameters::DoExecute( SfxRequest& rReq )
pRunningObj = pObject1;
}
DBG_ASSERT(pPath, "no curve found");
assert(pRunningObj && pPath && "no curve found");
// push the running object to the end of the curve
if (pRunningObj)
{
Rectangle aCurRect(pRunningObj->GetLogicRect());
Point aCurCenter(aCurRect.Center());
const ::basegfx::B2DPolyPolygon& rPolyPolygon = pPath->GetPathPoly();
......@@ -670,6 +672,7 @@ void FuObjectAnimationParameters::DoExecute( SfxRequest& rReq )
pUndoMgr->AddUndoAction(mpDoc->GetSdrUndoFactory().CreateUndoMoveObject( *pRunningObj, aDistance));
}
}
for (size_t nObject = 0; nObject < nCount; ++nObject)
{
......
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