summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRosemary Sebastian <rosemary.seb8@gmail.com>2017-08-31 16:08:58 +0530
committerRosemary Sebastian <rosemary.seb8@gmail.com>2017-08-31 16:26:29 +0530
commitdeb8df2842f27e45ee26bef9fbecaf28002dc09b (patch)
tree2b77a693a8658a5a7f77cc5566be29443d6b9dd1
parentPreserve cursor behaviour for selection deletes (diff)
downloadcore-feature/sw-delete-undo-rework.tar.gz
core-feature/sw-delete-undo-rework.zip
Fix grouping of the last letter in a word ... feature/sw-delete-undo-rework
... when deleting a redline insert in change-tracking mode. Change-Id: I948a5270962372ea4eaca3b876c4d1b847279346
-rw-r--r--sw/source/core/doc/DocumentRedlineManager.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/sw/source/core/doc/DocumentRedlineManager.cxx b/sw/source/core/doc/DocumentRedlineManager.cxx
index 1a62a0b04c64..1e92b43b1301 100644
--- a/sw/source/core/doc/DocumentRedlineManager.cxx
+++ b/sw/source/core/doc/DocumentRedlineManager.cxx
@@ -1189,11 +1189,6 @@ bool DocumentRedlineManager::AppendRedline( SwRangeRedline* pNewRedl, bool bCall
switch( eCmpPos )
{
case SwComparePosition::Equal:
- bCompress = true;
- mpRedlineTable->DeleteAndDestroy( n );
- bDec = true;
- SAL_FALLTHROUGH;
-
case SwComparePosition::Inside:
if( bCallDelete )
{
@@ -1222,6 +1217,12 @@ bool DocumentRedlineManager::AppendRedline( SwRangeRedline* pNewRedl, bool bCall
pNewRedl = nullptr;
if (eCmpPos == SwComparePosition::Inside)
pRedl->MaybeNotifyModification();
+ else
+ {
+ bCompress = true;
+ mpRedlineTable->DeleteAndDestroy( n );
+ bDec = true;
+ }
break;
case SwComparePosition::Outside: