sw/source/core/crsr/crbm.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 9473fa94abf06745d6d5e8c133a01747da2e56fb Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Thu Sep 15 18:02:34 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Sep 16 09:10:41 2022 +0200 use more SwPosition::AdjustContent part of hiding the internals of SwPosition Change-Id: If4e4bf99be1d380dbc61346f2701c255eae1af80 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140027 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sw/source/core/crsr/crbm.cxx b/sw/source/core/crsr/crbm.cxx index 4c9153012425..113fd96e4e5a 100644 --- a/sw/source/core/crsr/crbm.cxx +++ b/sw/source/core/crsr/crbm.cxx @@ -309,8 +309,8 @@ bool SwCursorShell::GotoFieldmark(::sw::mark::IFieldmark const * const pMark) // watch Cursor-Moves CursorStateHelper aCursorSt(*this); aCursorSt.SetCursorToMark(pMark); - ++aCursorSt.m_pCursor->GetPoint()->nContent; - --aCursorSt.m_pCursor->GetMark()->nContent; + aCursorSt.m_pCursor->GetPoint()->AdjustContent(+1); + aCursorSt.m_pCursor->GetMark()->AdjustContent(-1); if(aCursorSt.RollbackIfIllegal()) return false;