summaryrefslogtreecommitdiff
path: root/sw/source/uibase/dochdl
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-08-19 18:49:14 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-20 09:50:35 +0200
commit5bbe546488508a77dc9ca090f2e50191a88c509c (patch)
treea3e6db1810a1f42033becfc8688ae6519e784350 /sw/source/uibase/dochdl
parentc4d43643ac53249df870141eb8b89ea0e774b9a5 (diff)
use more SwPosition::GetNode
Change-Id: Idbf0f55c5b1542e5a0f8ef29b77bb391e861310e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138563 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/dochdl')
-rw-r--r--sw/source/uibase/dochdl/swdtflvr.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx
index c4a172e73c62..a735c9dffc73 100644
--- a/sw/source/uibase/dochdl/swdtflvr.cxx
+++ b/sw/source/uibase/dochdl/swdtflvr.cxx
@@ -1292,8 +1292,8 @@ void SwPasteContext::remember()
return;
// Set point to the previous node, so it is not moved.
- const SwNodeIndex& rNodeIndex = pCursor->GetPoint()->nNode;
- m_oPaM.emplace(rNodeIndex, rNodeIndex, SwNodeOffset(0), SwNodeOffset(-1));
+ const SwNode& rNode = pCursor->GetPoint()->GetNode();
+ m_oPaM.emplace(rNode, rNode, SwNodeOffset(0), SwNodeOffset(-1));
m_nStartContent = pCursor->GetPoint()->GetContentIndex();
}