summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/doc/DocumentContentOperationsManager.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/core/doc/DocumentContentOperationsManager.cxx b/sw/source/core/doc/DocumentContentOperationsManager.cxx
index a49ed387aac3..0e23b4310c49 100644
--- a/sw/source/core/doc/DocumentContentOperationsManager.cxx
+++ b/sw/source/core/doc/DocumentContentOperationsManager.cxx
@@ -2199,7 +2199,9 @@ bool DocumentContentOperationsManager::DelFullPara( SwPaM& rPam )
SwContentNode *pTmpNode = rPam.GetPoint()->GetNode().GetContentNode();
bool bGoNext = (nullptr == pTmpNode);
- rPam.GetMark()->SetContent( 0 );
+
+ if (rPam.GetMark()->GetContentNode())
+ rPam.GetMark()->SetContent( 0 );
m_rDoc.GetIDocumentUndoRedo().ClearRedo();