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

coverity#704833 Dereference after null check

Change-Id: I307a277ce8f473652afd084eb9848ecb27574714
üst 213571db
...@@ -1804,7 +1804,7 @@ bool SdrMarkView::PickObj(const Point& rPnt, short nTol, SdrObject*& rpObj, SdrP ...@@ -1804,7 +1804,7 @@ bool SdrMarkView::PickObj(const Point& rPnt, short nTol, SdrObject*& rpObj, SdrP
if (!pObj->HasMacro() || !pObj->IsMacroHit(aHitRec)) pObj=NULL; if (!pObj->HasMacro() || !pObj->IsMacroHit(aHitRec)) pObj=NULL;
} }
if (pObj!=NULL && (nOptions & SDRSEARCH_WITHTEXT) !=0 && pObj->GetOutlinerParaObject()==NULL) pObj=NULL; if (pObj!=NULL && (nOptions & SDRSEARCH_WITHTEXT) !=0 && pObj->GetOutlinerParaObject()==NULL) pObj=NULL;
if (pObj!=NULL && (nOptions & SDRSEARCH_TESTTEXTAREA) !=0) if (pObj!=NULL && (nOptions & SDRSEARCH_TESTTEXTAREA) !=0 && pPV)
{ {
if(!SdrObjectPrimitiveHit(*pObj, aPt, 0, *pPV, 0, true)) if(!SdrObjectPrimitiveHit(*pObj, aPt, 0, *pPV, 0, true))
{ {
......
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