summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-13 20:39:15 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-13 22:38:33 +0100
commit74615356b36aeefc9046c53d05f4919e9fae6a87 (patch)
tree066d5112383f9bdf260cd1102ac680931e8ca617 /sw
parent505e194b1be2e21070c7a93214e719634556f8c9 (diff)
coverity#1326550 Dereference before null check
Change-Id: I27ddcc842f109eb3defbae425babbb9d98e83c04
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/uiview/viewling.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/uiview/viewling.cxx b/sw/source/uibase/uiview/viewling.cxx
index 584c57129a64..2d760419cc53 100644
--- a/sw/source/uibase/uiview/viewling.cxx
+++ b/sw/source/uibase/uiview/viewling.cxx
@@ -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(