summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-10-01 09:48:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-10-02 17:26:03 +0200
commit3bc383f5f6059ace3b834a637a49bc884fc00324 (patch)
treea45fdc51bf3a96499fe4b45be29e3322702173ab
parente4ffcf3225ab4ec38c704f4ba0d1f987e4368af5 (diff)
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.grandin@collabora.co.uk>
-rw-r--r--sw/source/core/undo/undobj.cxx3
1 files changed, 1 insertions, 2 deletions
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;
}