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

New commits:
commit aa0e536c2b09952aab729c529e81394fedeb8507
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Fri Oct 7 16:51:33 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Fri Oct 7 19:29:01 2022 +0200

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

diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx
index 1cf992854c6c..96f3c751b325 100644
--- a/sw/source/core/layout/atrfrm.cxx
+++ b/sw/source/core/layout/atrfrm.cxx
@@ -3418,7 +3418,7 @@ void SwHandleAnchorNodeChg::ImplDestroy()
         *rCursor.GetPoint() = *moCommentAnchor;
         rCursor.SetMark();
         *rCursor.GetMark() = *moCommentAnchor;
-        ++rCursor.GetMark()->nContent;
+        rCursor.GetMark()->AdjustContent(+1);
     }
 
     // Set up the target of the move: the new comment anchor.

Reply via email to