diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/docbm.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx index 72764a60b440..6519285e15a3 100644 --- a/sw/source/core/doc/docbm.cxx +++ b/sw/source/core/doc/docbm.cxx @@ -417,6 +417,9 @@ namespace sw { namespace mark " - Mark was not created."); MarkBase* pMarkBase = dynamic_cast<MarkBase*>(pMark.get()); + if (!pMark) + return 0; + if(pMark->GetMarkPos() != pMark->GetMarkStart()) pMarkBase->Swap(); |