Kaydet (Commit) 3f0116e0 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1209818 Dereference before null check

Change-Id: I0d94e599818df19411de8e58b99bb9f5735f973a
üst 8a4a9c88
......@@ -1418,8 +1418,8 @@ bool SdrEditView::ImpCanDismantle(const SdrObject* pObj, bool bMakeLines) const
}
else
{
const SdrPathObj* pPath = PTR_CAST(SdrPathObj, pObj);
const SdrObjCustomShape* pCustomShape = PTR_CAST(SdrObjCustomShape, pObj);
const SdrPathObj* pPath = dynamic_cast<const SdrPathObj*>(pObj);
const SdrObjCustomShape* pCustomShape = dynamic_cast<const SdrObjCustomShape*>(pObj);
// #i37011#
if(pPath)
......
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