summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-08-27 18:30:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-27 19:19:26 +0200
commitd152455237f548ed3f3d87689b1f558aa1c057c1 (patch)
tree4007ff2dc066158fd649ec4b0add08cbd4052ec9 /sw
parent7bc61569e25fe0c32063896eced72219cc4fb3f5 (diff)
crashtesting ooo117844-1.docx
regression from commit 59785c0237f2bc5eaf9e9742bdf30136f3b3d2ba Author: Noel Grandin <noelgrandin@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.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/docbm.cxx8
1 files changed, 4 insertions, 4 deletions
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;