summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/unocore/unotext.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/core/unocore/unotext.cxx b/sw/source/core/unocore/unotext.cxx
index 00c6e85bd344..14c11e4a401a 100644
--- a/sw/source/core/unocore/unotext.cxx
+++ b/sw/source/core/unocore/unotext.cxx
@@ -1656,6 +1656,8 @@ throw (lang::IllegalArgumentException, uno::RuntimeException)
if (bParaBeforeInserted)
{
SwCursor aDelete(*aStartPam.GetPoint(), 0, false);
+ *aStartPam.GetPoint() = // park it because node is deleted
+ SwPosition(GetDoc()->GetNodes().GetEndOfContent());
aDelete.MovePara(fnParaCurr, fnParaStart);
aDelete.SetMark();
aDelete.MovePara(fnParaCurr, fnParaEnd);
@@ -1664,6 +1666,8 @@ throw (lang::IllegalArgumentException, uno::RuntimeException)
if (bParaAfterInserted)
{
SwCursor aDelete(*pEndPam->GetPoint(), 0, false);
+ *pEndPam->GetPoint() = // park it because node is deleted
+ SwPosition(GetDoc()->GetNodes().GetEndOfContent());
aDelete.MovePara(fnParaCurr, fnParaStart);
aDelete.SetMark();
aDelete.MovePara(fnParaCurr, fnParaEnd);