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

coverity#735874 Dereference after null check

Change-Id: I74a4a126116638aa33193f267e2f86a3c364fbae
üst ffbcf926
......@@ -2616,10 +2616,8 @@ SdrObject* SdrObject::ConvertToContourObj(SdrObject* pRet, bool bForceLineDash)
}
else
{
if(pRet && dynamic_cast<const SdrPathObj*>( pRet) != nullptr)
if (SdrPathObj *pPathObj = dynamic_cast<SdrPathObj*>(pRet))
{
SdrPathObj* pPathObj = static_cast<SdrPathObj*>(pRet);
// bezier geometry got created, even for straight edges since the given
// object is a result of DoConvertToPolyObj. For conversion to contour
// this is not really needed and can be reduced again AFAP
......
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