diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-19 10:32:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-19 13:39:00 +0200 |
commit | 390c7b97ad674a8281735980120733a48e5d89a3 (patch) | |
tree | e0cbd8f3e0b0397f58bbbe8f4ceda4dc2cde769d /sw/source/core/layout/frmtool.cxx | |
parent | eb8252f738bfd1689edee205c6a5e13643f89c29 (diff) |
use more SwPosition::GetContentIndex
part of the process of hiding the internals of SwPosition
Change-Id: Iaf038c006fc9f82073664536278aac4d44754340
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138512
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.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx index cb16a9f59deb..c9ec9c9a2de8 100644 --- a/sw/source/core/layout/frmtool.cxx +++ b/sw/source/core/layout/frmtool.cxx @@ -1337,7 +1337,7 @@ bool IsAnchoredObjShown(SwTextFrame const& rFrame, SwFormatAnchor const& rAnchor { ret = (&pAnchor->GetNode() == pMergedPara->pFirstNode && (rAnchor.GetAnchorId() == RndStdIds::FLY_AT_PARA - || pAnchor->nContent == 0)) + || pAnchor->GetContentIndex() == 0)) || (&pAnchor->GetNode() == pMergedPara->pLastNode && (rAnchor.GetAnchorId() == RndStdIds::FLY_AT_PARA || pAnchor->GetContentIndex() == pMergedPara->pLastNode->Len())); |