summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRosemary Sebastian <rosemary.seb8@gmail.com>2017-07-22 15:24:45 +0530
committerMichael Stahl <mstahl@redhat.com>2017-08-25 23:01:09 +0200
commit355715d333bced59256afb005ac9f243d37aa23e (patch)
treeef5bc5a7ac47639084cba817a092a9ac189cc937
parente9d64ca080ed0cf2dcb56be13bee1bffbff880fd (diff)
tdf#109267: Fix crash during undo of delete inside redline insert
Change-Id: I070ce600c10f469b914cc1d6c036a55f33dc9529 (cherry picked from commit bd37233020266a5892d6ec7022688e3dfb9cef75) Signed-off-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--sw/source/core/doc/DocumentRedlineManager.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/sw/source/core/doc/DocumentRedlineManager.cxx b/sw/source/core/doc/DocumentRedlineManager.cxx
index 0baf6586c449..1a62a0b04c64 100644
--- a/sw/source/core/doc/DocumentRedlineManager.cxx
+++ b/sw/source/core/doc/DocumentRedlineManager.cxx
@@ -888,7 +888,12 @@ bool DocumentRedlineManager::AppendRedline( SwRangeRedline* pNewRedl, bool bCall
( pNewRedl->GetContentIdx() == nullptr ) )
bDelete = true;
}
- else if( SwComparePosition::Inside == eCmpPos || SwComparePosition::Equal == eCmpPos)
+ else if( SwComparePosition::Inside == eCmpPos )
+ {
+ bDelete = true;
+ bMerged = true;
+ }
+ else if( SwComparePosition::Equal == eCmpPos )
bDelete = true;
if( bDelete )