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

New commits:
commit d152455237f548ed3f3d87689b1f558aa1c057c1
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Sat Aug 27 18:30:08 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Sat Aug 27 19:19:26 2022 +0200

    crashtesting ooo117844-1.docx
    
    regression from
        commit 59785c0237f2bc5eaf9e9742bdf30136f3b3d2ba
        Author: Noel Grandin <noelgran...@gmail.com>
        Date:   Mon Aug 15 15:24:32 2022 +0200
        pass SwNode and sal_Int32 to delBookmarks
    
    Change-Id: I2d552cf1bc70850e09b354e11644d59013061377
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138935
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx
index 8e2f0868c560..e3ab61505da6 100644
--- a/sw/source/core/doc/docbm.cxx
+++ b/sw/source/core/doc/docbm.cxx
@@ -1927,9 +1927,9 @@ void DelBookmarks(
 
         if( lcl_Greater( *pRStt, rStt, oStartContentIdx ) && lcl_Lower( 
*pRStt, rEnd, oEndContentIdx ))
         {
-            pRStt->nNode = rEnd;
+            pRStt->Assign( rEnd );
             if( oEndContentIdx )
-                pRStt->nContent = *oEndContentIdx;
+                pRStt->SetContent( *oEndContentIdx );
             else
             {
                 bool bStt = true;
@@ -1953,9 +1953,9 @@ void DelBookmarks(
         }
         if( lcl_Greater( *pREnd, rStt, oStartContentIdx ) && lcl_Lower( 
*pREnd, rEnd, oEndContentIdx ))
         {
-            pREnd->nNode = rStt;
+            pREnd->Assign( rStt );
             if( oStartContentIdx )
-                pREnd->nContent = *oStartContentIdx;
+                pREnd->SetContent( *oStartContentIdx );
             else
             {
                 bool bStt = false;

Reply via email to