sw/source/core/undo/undobj.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 3bc383f5f6059ace3b834a637a49bc884fc00324
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Sat Oct 1 09:48:19 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Sun Oct 2 17:26:03 2022 +0200

    use more SwPosition::Adjust
    
    part of the process of hiding the internals of SwPosition
    
    Change-Id: I4c5cb657fa193ae2efbf0d7e315939e68ca89600
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140830
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sw/source/core/undo/undobj.cxx b/sw/source/core/undo/undobj.cxx
index c461c5ecde8b..8d77e807f2c8 100644
--- a/sw/source/core/undo/undobj.cxx
+++ b/sw/source/core/undo/undobj.cxx
@@ -830,8 +830,7 @@ bool SwUndoSaveContent::MovePtBackward( SwPaM& rPam )
 
     // If there is no content onwards, set Point simply to the previous 
position
     // (Node and Content, so that Content will be detached!)
-    --rPam.GetPoint()->nNode;
-    rPam.GetPoint()->nContent.Assign( nullptr, 0 );
+    rPam.GetPoint()->Adjust(SwNodeOffset(-1));
     return false;
 }
 

Reply via email to