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

coverity#1326550 Dereference before null check

Change-Id: I27ddcc842f109eb3defbae425babbb9d98e83c04
üst 505e194b
......@@ -651,7 +651,7 @@ bool SwView::ExecSpellPopup(const Point& rPt)
// This makes it possible to suggest spelling corrections for
// wrong words independent of the spell-checking idle job.
if (pNode && pNode->IsWrongDirty() &&
dynamic_cast< const SwCrsrShell *>( m_pWrtShell ) != nullptr && !pCrsrShell->IsTableMode() &&
!pCrsrShell->IsTableMode() &&
!pCrsr->HasMark() && !pCrsr->IsMultiSelection())
{
SwContentFrm *pFrm = pCrsr->GetContentNode()->getLayoutFrm(
......
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