summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/frmtool.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-08-14 18:02:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-14 21:28:37 +0200
commitd0c07ec1cad386a0ec3bf34c6aa6e7b50859ef09 (patch)
treefd7050cd2011357ebba52ba3b82a5faea12f3971 /sw/source/core/layout/frmtool.cxx
parent895843ad466954b63f6f99a1b6319b7813d0dbe1 (diff)
use more GetContentIndex
Change-Id: I48e36a95872b5c2bdb6b92c66403d4c08eedd38c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138255 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/layout/frmtool.cxx')
-rw-r--r--sw/source/core/layout/frmtool.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx
index d2dfacf52f34..6bccf8d73869 100644
--- a/sw/source/core/layout/frmtool.cxx
+++ b/sw/source/core/layout/frmtool.cxx
@@ -1340,7 +1340,7 @@ bool IsAnchoredObjShown(SwTextFrame const& rFrame, SwFormatAnchor const& rAnchor
|| pAnchor->nContent == 0))
|| (&pAnchor->GetNode() == pMergedPara->pLastNode
&& (rAnchor.GetAnchorId() == RndStdIds::FLY_AT_PARA
- || pAnchor->nContent == pMergedPara->pLastNode->Len()));
+ || pAnchor->GetContentIndex() == pMergedPara->pLastNode->Len()));
}
auto iter(iterFirst);
SwTextNode const* pNode(pMergedPara->pFirstNode);