sw/source/core/frmedt/fews.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit ad5567daa7beb422b868af3234f6da50138cc24e Author: Noel Grandin <[email protected]> AuthorDate: Wed Sep 28 16:16:56 2022 +0200 Commit: Noel Grandin <[email protected]> CommitDate: Thu Sep 29 10:44:55 2022 +0200 use more SwPosition::Adjust part of the process of hiding the internals of SwPosition Change-Id: I250484cec147b61c74a7fdb23bd389dd5d6c1d74 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140712 Tested-by: Jenkins Reviewed-by: Noel Grandin <[email protected]> diff --git a/sw/source/core/frmedt/fews.cxx b/sw/source/core/frmedt/fews.cxx index c3c2de36e3e6..034adb425ca1 100644 --- a/sw/source/core/frmedt/fews.cxx +++ b/sw/source/core/frmedt/fews.cxx @@ -564,17 +564,17 @@ bool SwFEShell::Sort(const SwSortOptions& rOpt) // put selection again pPam->DeleteMark(); - pPam->GetPoint()->nNode.Assign( aPrevIdx.GetNode(), +1 ); + pPam->GetPoint()->Assign( aPrevIdx.GetNode(), SwNodeOffset(+1) ); SwContentNode* pCNd = pPam->GetPointContentNode(); sal_Int32 nLen = pCNd->Len(); if( nLen > nCntStt ) nLen = nCntStt; - pPam->GetPoint()->nContent.Assign(pCNd, nLen ); + pPam->GetPoint()->SetContent(nLen ); pPam->SetMark(); - pPam->GetPoint()->nNode += nOffset; + pPam->GetPoint()->Adjust(nOffset); pCNd = pPam->GetPointContentNode(); - pPam->GetPoint()->nContent.Assign( pCNd, pCNd->Len() ); + pPam->GetPoint()->SetContent( pCNd->Len() ); } }
