[Libreoffice-commits] core.git: Branch 'feature/sw-delete-undo-rework' - sw/source

Rosemary Sebastian rosemary.seb8 at gmail.com
Wed Aug 30 16:20:41 UTC 2017


 sw/source/core/undo/undel.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0bd48242a731a37eeb049d5d692153f5f522097f
Author: Rosemary Sebastian <rosemary.seb8 at gmail.com>
Date:   Wed Aug 30 21:47:22 2017 +0530

    Preserve cursor behaviour for selection deletes
    
    Change-Id: Ie3768a589b4c44230b30c559525710c6ca8efd4c

diff --git a/sw/source/core/undo/undel.cxx b/sw/source/core/undo/undel.cxx
index 0e9681af5b6d..d4f8202989f0 100644
--- a/sw/source/core/undo/undel.cxx
+++ b/sw/source/core/undo/undel.cxx
@@ -210,7 +210,7 @@ SwUndoDelete::SwUndoDelete(
     }
 
     // Move now also the PaM. The SPoint is at the beginning of a SSelection.
-    if( pEnd == rPam.GetPoint() && ( !bFullPara || pSttTextNd || pEndTextNd ) )
+    if( pEnd == rPam.GetPoint() && ( !bFullPara || pSttTextNd || pEndTextNd ) && !m_bRedlineDelete )
         rPam.Exchange();
 
     if( !pSttTextNd && !pEndTextNd )


More information about the Libreoffice-commits mailing list