summaryrefslogtreecommitdiff
path: root/sw/source/filter/writer
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-10-08 20:22:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-10-09 09:22:26 +0200
commitf17bd77105da8995df7a79c8978556a8848edf99 (patch)
treeaa23baaee4b9e80569f35b610c6123e1f93a2229 /sw/source/filter/writer
parentd72571fdd47c627efcd0dff92fbe8a9747f92932 (diff)
use more SwPosition::GetNode
part of the process of hiding the internals of SwPosition Change-Id: Ia080b5bf4ca622e3bf0279ba41d8ccdd11e0be8c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141123 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/writer')
-rw-r--r--sw/source/filter/writer/writer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/writer/writer.cxx b/sw/source/filter/writer/writer.cxx
index 04b46d1261b4..42fb87a592e2 100644
--- a/sw/source/filter/writer/writer.cxx
+++ b/sw/source/filter/writer/writer.cxx
@@ -94,7 +94,7 @@ void Writer_Impl::InsertBkmk(const ::sw::mark::IMark& rBkmk)
aBkmkNodePos.emplace( nNd, &rBkmk );
- if(rBkmk.IsExpanded() && rBkmk.GetOtherMarkPos().nNode != nNd)
+ if(rBkmk.IsExpanded() && rBkmk.GetOtherMarkPos().GetNodeIndex() != nNd)
{
nNd = rBkmk.GetOtherMarkPos().GetNodeIndex();
aBkmkNodePos.emplace( nNd, &rBkmk );