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

coverity#982483 Dereference after null check

Change-Id: I1241bd12f0e56796d8918e83c29f17ee4b595789
üst 440fd8fa
......@@ -3942,7 +3942,7 @@ void SwEditWin::MouseMove(const MouseEvent& _rMEvt)
const Point aOld = m_pAnchorMarker->GetPosForHitTest( *(rSh.GetOut()) );
Point aNew = rSh.FindAnchorPos( aDocPt );
SdrHdl* pHdl;
if( (0!=( pHdl = pSdrView->PickHandle( aOld ) )||
if( pSdrView && (0!=( pHdl = pSdrView->PickHandle( aOld ) )||
0 !=(pHdl = pSdrView->PickHandle( m_pAnchorMarker->GetHdlPos()) ) ) &&
( pHdl->GetKind() == HDL_ANCHOR ||
pHdl->GetKind() == HDL_ANCHOR_TR ) )
......
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