sw/source/core/doc/tblcpy.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 8e39704b597fda9e3ef442252defed16a0a07b03
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Tue Oct 11 12:22:03 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Tue Oct 11 19:07:56 2022 +0200

    use more SwPosition::SetContent
    
    part of the process of hiding the internals of SwPosition
    
    Change-Id: I8a0de56c9e42adda71cffe8b79daca5a8e7a23a3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141213
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sw/source/core/doc/tblcpy.cxx b/sw/source/core/doc/tblcpy.cxx
index bf9200cb0623..808f0ac3d8bb 100644
--- a/sw/source/core/doc/tblcpy.cxx
+++ b/sw/source/core/doc/tblcpy.cxx
@@ -533,9 +533,9 @@ static void lcl_CpyBox( const SwTable& rCpyTable, const 
SwTableBox* pCpyBox,
         // Move Bookmarks
         {
             SwPosition aMvPos( aInsIdx );
-            SwContentNode* pCNd = SwNodes::GoPrevious( &aMvPos.nNode );
+            SwContentNode* pCNd = SwNodes::GoPrevious( &aMvPos );
             assert(pCNd); // keep coverity happy
-            aMvPos.nContent.Assign( pCNd, pCNd->Len() );
+            aMvPos.SetContent( pCNd->Len() );
             SwDoc::CorrAbs( aInsIdx, aEndNdIdx, aMvPos );
         }
 

Reply via email to