sw/source/core/doc/docnum.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 495788ceddc9b6fd6d6ef7bdbef2ed16b501ea46
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Sun Oct 9 12:19:14 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Sun Oct 9 15:02:04 2022 +0200

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

diff --git a/sw/source/core/doc/docnum.cxx b/sw/source/core/doc/docnum.cxx
index 8324015cf7ae..0fd45531965f 100644
--- a/sw/source/core/doc/docnum.cxx
+++ b/sw/source/core/doc/docnum.cxx
@@ -2021,10 +2021,9 @@ bool SwDoc::MoveParagraphImpl(SwPaM& rPam, SwNodeOffset 
const nOffset,
         SwRedlineTable::size_type nRedlPos = 
getIDocumentRedlineAccess().GetRedlinePos( pStt->GetNode(), RedlineType::Delete 
);
         if( SwRedlineTable::npos != nRedlPos )
         {
-            SwPosition aStPos( *pStt ), aEndPos( *pEnd );
-            aStPos.nContent = 0;
             SwContentNode* pCNd = pEnd->GetNode().GetContentNode();
-            aEndPos.nContent = pCNd ? pCNd->Len() : 1;
+            SwPosition aStPos( pStt->GetNode() );
+            SwPosition aEndPos( pEnd->GetNode(), pCNd, pCNd ? pCNd->Len() : 1 
);
             bool bCheckDel = true;
 
             // There is a some Redline Delete Object for the range

Reply via email to