summaryrefslogtreecommitdiff
path: root/sw/source/core/txtnode/txtedt.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-01 10:01:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-02 13:57:14 +0200
commitc1c195afab72794a1f0d5ed63c2e3fe6f65bfa84 (patch)
treee64b047be56d1079ba1976456c5df70bb957b157 /sw/source/core/txtnode/txtedt.cxx
parentd11f2e00593300dc68bcd11e23ad05116465adba (diff)
introduce SwPosition::GetNode
as part of the process of hiding the internals of SwPosition largely done by doing: git grep -lF 'nNode.GetNode' | xargs perl -pi -e 's/nNode\.GetNode/GetNode/g' Change-Id: Id1937df1bd5a54677c2c1bbfb2d693a4e22a7b98 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137671 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/txtnode/txtedt.cxx')
-rw-r--r--sw/source/core/txtnode/txtedt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx
index 7f0e0ea12edb..0d0f388abc37 100644
--- a/sw/source/core/txtnode/txtedt.cxx
+++ b/sw/source/core/txtnode/txtedt.cxx
@@ -667,7 +667,7 @@ static sal_Int32 clipIndexBounds(const OUString &rStr, sal_Int32 nPos)
OUString SwTextFrame::GetCurWord(SwPosition const& rPos) const
{
TextFrameIndex const nPos(MapModelToViewPos(rPos));
- SwTextNode *const pTextNode(rPos.nNode.GetNode().GetTextNode());
+ SwTextNode *const pTextNode(rPos.GetNode().GetTextNode());
assert(pTextNode);
OUString const& rText(GetText());
assert(sal_Int32(nPos) <= rText.getLength()); // invalid index