sw/source/core/docnode/ndtbl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 75f24c582bce6db790d8027be3d7b8cca0289a9a Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Sat Oct 8 07:55:41 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sat Oct 8 14:28:54 2022 +0200 use more SwPosition::Assign part of the process of hiding the internals of SwPosition Change-Id: Icb2d1017f57483b58069f0cb1347793f1d057e08 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141099 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx index 6b384f9a18a0..34052bc587a3 100644 --- a/sw/source/core/docnode/ndtbl.cxx +++ b/sw/source/core/docnode/ndtbl.cxx @@ -2308,7 +2308,7 @@ TableMergeErr SwDoc::MergeTable( SwPaM& rPam ) } } - rPam.GetPoint()->nNode = *pMergeBox->GetSttNd(); + rPam.GetPoint()->Assign( *pMergeBox->GetSttNd() ); rPam.Move(); ::ClearFEShellTabCols(*this, nullptr); @@ -4347,7 +4347,7 @@ bool SwDoc::InsCopyOfTable( SwPosition& rInsPos, const SwSelBoxes& rBoxes, } return false; } - aPos.nNode -= SwNodeOffset(1); // Set to the Table's EndNode + aPos.Adjust(SwNodeOffset(-1)); // Set to the Table's EndNode pSrcTableNd = aPos.GetNode().FindTableNode(); }