diff options
author | Michael Stahl <mstahl@redhat.com> | 2011-11-18 14:01:46 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2011-11-18 22:24:19 +0100 |
commit | 74f53711fa7e54c4d449912be53c50eebb002451 (patch) | |
tree | 94b20f615dfd7606367bbaf88fb5309079640855 /sw | |
parent | 72318173b6d2f6f62e15909dcc121e85872c0ef1 (diff) |
SwDoc::ReplaceRange: prevent assertion
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/docedt.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/core/doc/docedt.cxx b/sw/source/core/doc/docedt.cxx index b4c8e072b54b..22292b44d445 100644 --- a/sw/source/core/doc/docedt.cxx +++ b/sw/source/core/doc/docedt.cxx @@ -2219,6 +2219,9 @@ bool SwDoc::ReplaceRange( SwPaM& rPam, const String& rStr, if (!Breaks.size()) { + // park aPam somewhere so it does not point to node that is deleted + aPam.DeleteMark(); + *aPam.GetPoint() = SwPosition(GetNodes().GetEndOfContent()); return ReplaceRangeImpl(rPam, rStr, bRegExReplace); // original pam! } |