diff options
author | Rosemary Sebastian <rosemary.seb8@gmail.com> | 2017-08-31 16:08:58 +0530 |
---|---|---|
committer | Rosemary Sebastian <rosemary.seb8@gmail.com> | 2017-08-31 16:26:29 +0530 |
commit | deb8df2842f27e45ee26bef9fbecaf28002dc09b (patch) | |
tree | 2b77a693a8658a5a7f77cc5566be29443d6b9dd1 | |
parent | 0d0c80e26b5fe2c2bf78be329a441f6dffadf72a (diff) |
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.cxx | 11 |
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: |