sw/source/core/docnode/ndtbl.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit b9b184b3d4295464385df5714b8930e1a6b928da
Author:     Noel Grandin <[email protected]>
AuthorDate: Sun Oct 9 12:21:52 2022 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Sun Oct 9 13:48:50 2022 +0200

    use more SwPosition::Assign
    
    part of the process of hiding the internals of SwPosition
    
    Change-Id: Ibfd5e03966a96338e987b8794c49e6ac92f02153
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141141
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <[email protected]>

diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx
index 34052bc587a3..8dc8719deeeb 100644
--- a/sw/source/core/docnode/ndtbl.cxx
+++ b/sw/source/core/docnode/ndtbl.cxx
@@ -2271,8 +2271,7 @@ TableMergeErr SwDoc::MergeTable( SwPaM& rPam )
         // access it after GetMergeSel
         {
             rPam.DeleteMark();
-            rPam.GetPoint()->nNode = *pMergeBox->GetSttNd();
-            rPam.GetPoint()->nContent.Assign( nullptr, 0 );
+            rPam.GetPoint()->Assign(*pMergeBox->GetSttNd());
             rPam.SetMark();
             rPam.DeleteMark();
 

Reply via email to