sw/source/core/crsr/trvltbl.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit ff1ec4d59a2c97ccabbfd6e5fa542c19ab65db14
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Mon Aug 29 18:52:14 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Mon Aug 29 20:55:50 2022 +0200

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

diff --git a/sw/source/core/crsr/trvltbl.cxx b/sw/source/core/crsr/trvltbl.cxx
index 7fe3171ef043..6c03eca498a6 100644
--- a/sw/source/core/crsr/trvltbl.cxx
+++ b/sw/source/core/crsr/trvltbl.cxx
@@ -233,10 +233,10 @@ bool SwCursorShell::SelTableRowOrCol( bool bRow, bool 
bRowSimple )
     m_pTableCursor->DeleteMark();
 
     // set start and end of a column
-    m_pTableCursor->GetPoint()->nNode = *pEnd->GetSttNd();
+    m_pTableCursor->GetPoint()->Assign( *pEnd->GetSttNd() );
     m_pTableCursor->Move( fnMoveForward, GoInContent );
     m_pTableCursor->SetMark();
-    m_pTableCursor->GetPoint()->nNode = *pStt->GetSttNd()->EndOfSectionNode();
+    m_pTableCursor->GetPoint()->Assign( *pStt->GetSttNd()->EndOfSectionNode() 
);
     m_pTableCursor->Move( fnMoveBackward, GoInContent );
 
     // set PtPos 'close' to the reference table, otherwise we might get 
problems
@@ -271,13 +271,13 @@ bool SwCursorShell::SelTable()
     }
 
     m_pTableCursor->DeleteMark();
-    m_pTableCursor->GetPoint()->nNode = *pTableNd;
+    m_pTableCursor->GetPoint()->Assign( *pTableNd );
     m_pTableCursor->Move( fnMoveForward, GoInContent );
     m_pTableCursor->SetMark();
     // set MkPos 'close' to the master table, otherwise we might get problems
     // with the repeated headlines check in UpdateCursor():
     m_pTableCursor->GetMkPos() = pMasterTabFrame->IsVertical() ? 
pMasterTabFrame->getFrameArea().TopRight() : 
pMasterTabFrame->getFrameArea().TopLeft();
-    m_pTableCursor->GetPoint()->nNode = *pTableNd->EndOfSectionNode();
+    m_pTableCursor->GetPoint()->Assign( *pTableNd->EndOfSectionNode() );
     m_pTableCursor->Move( fnMoveBackward, GoInContent );
     UpdateCursor();
     return true;

Reply via email to