sw/source/core/docnode/ndtbl.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
New commits: commit bf12f7b4b3f6b32fe836864cd109ea7e6cd3d33f Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Fri Oct 7 10:13:14 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Oct 7 11:16:19 2022 +0200 use more SwPosition::Assign part of the process of hiding the internals of SwPosition Change-Id: I7a0990c3fba08c0a8d68fa7007854457e05f0016 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141044 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 46f1a475fddc..341bc2188af8 100644 --- a/sw/source/core/docnode/ndtbl.cxx +++ b/sw/source/core/docnode/ndtbl.cxx @@ -1065,7 +1065,7 @@ SwTableNode* SwNodes::TextToTable( const SwNodeRange& rRange, sal_Unicode cCh, { if (pTextNd->GetText()[nChPos] == cCh) { - aCntPos.nContent = nChPos; + aCntPos.SetContent(nChPos); std::function<void (SwTextNode *, sw::mark::RestoreMode, bool)> restoreFunc( [&](SwTextNode *const pNewNode, sw::mark::RestoreMode const eMode, bool) { @@ -1891,8 +1891,7 @@ void SwDoc::DeleteRow( const SwCursor& rCursor ) { // Change the Shell's Cursor or the one passed? SwPaM* pPam = const_cast<SwPaM*>(static_cast<SwPaM const *>(&rCursor)); - pPam->GetPoint()->nNode = aIdx; - pPam->GetPoint()->nContent.Assign( pCNd, 0 ); + pPam->GetPoint()->Assign(aIdx); pPam->SetMark(); // Both want a part of it pPam->DeleteMark(); }