summaryrefslogtreecommitdiffstats
path: root/sw/source/core/text/redlnitr.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/text/redlnitr.cxx
parenttdf#103492: Messed Arabic letter spacing in text starting with LTR character(s) (diff)
downloadcore-d0c07ec1cad386a0ec3bf34c6aa6e7b50859ef09.tar.gz
core-d0c07ec1cad386a0ec3bf34c6aa6e7b50859ef09.zip
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/text/redlnitr.cxx')
-rw-r--r--sw/source/core/text/redlnitr.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/redlnitr.cxx b/sw/source/core/text/redlnitr.cxx
index e826141a9afa..eb37da3e96c0 100644
--- a/sw/source/core/text/redlnitr.cxx
+++ b/sw/source/core/text/redlnitr.cxx
@@ -227,7 +227,7 @@ CheckParaRedlineMerge(SwTextFrame & rFrame, SwTextNode & rTextNode,
SwPosition const*const pEnd(iter.GetEndPos());
bHaveRedlines = true;
assert(pNode != &rTextNode || &pStart->GetNode() == &rTextNode); // detect calls with wrong start node
- if (pStart->nContent != nLastEnd) // not 0 so we eliminate adjacent deletes
+ if (pStart->GetContentIndex() != nLastEnd) // not 0 so we eliminate adjacent deletes
{
extents.emplace_back(pNode, nLastEnd, pStart->GetContentIndex());
mergedText.append(pNode->GetText().subView(nLastEnd, pStart->GetContentIndex() - nLastEnd));