sw/source/core/crsr/pam.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 94cda7386e06d75d26fd997db36981731f49e081
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Thu Aug 4 16:17:17 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Fri Aug 5 09:18:35 2022 +0200

    make GoStartDoc always set SwPosition::nContent
    
    as part of the process of hiding the internals of SwPosition
    
    by using the new
       SwNodes::GoNext(SwPosition*)
    function.
    
    GoStartDoc is only called from GoInDoc
    
    Change-Id: Ifb780883494e94eb9b445246733bd6fe80423d48
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137804
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sw/source/core/crsr/pam.cxx b/sw/source/core/crsr/pam.cxx
index c23dd899eeae..589d1427d701 100644
--- a/sw/source/core/crsr/pam.cxx
+++ b/sw/source/core/crsr/pam.cxx
@@ -1024,9 +1024,7 @@ void GoStartDoc( SwPosition * pPos )
     SwNodes& rNodes = pPos->GetNodes();
     pPos->nNode = *rNodes.GetEndOfContent().StartOfSectionNode();
     // we always need to find a ContentNode!
-    SwContentNode* pCNd = rNodes.GoNext( &pPos->nNode );
-    if( pCNd )
-        pPos->AssignStartIndex(*pCNd);
+    rNodes.GoNext( pPos );
 }
 
 void GoEndDoc( SwPosition * pPos )

Reply via email to