diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-05-24 22:00:05 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-05-24 22:11:05 +0200 |
commit | 17fa344d034df1a1179b4e5961ec3001402a6df1 (patch) | |
tree | c5d77e374e8005ffb30f1cec75c305da47b9c1b9 /sw | |
parent | 8617afc0a88789722202cd0f30678eaee6c95580 (diff) |
coverity#1158081 Unchecked dynamic_cast
Change-Id: Ia67656ac35d50c1f70045ff8e9084bcc54b0d9a8
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/docbm.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx index 901ac7179827..21de483c631e 100644 --- a/sw/source/core/doc/docbm.cxx +++ b/sw/source/core/doc/docbm.cxx @@ -573,6 +573,8 @@ namespace sw { namespace mark ++ppMark) { ::sw::mark::MarkBase* pMark = dynamic_cast< ::sw::mark::MarkBase* >(ppMark->get()); + if (!pMark) + continue; // is on position ?? bool bChangedPos = false; if(&pMark->GetMarkPos().nNode.GetNode() == pOldNode) |