From d0c07ec1cad386a0ec3bf34c6aa6e7b50859ef09 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 14 Aug 2022 18:02:27 +0200 Subject: use more GetContentIndex Change-Id: I48e36a95872b5c2bdb6b92c66403d4c08eedd38c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138255 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/core/crsr/crsrsh.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw/source/core/crsr/crsrsh.cxx') diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx index 013f65bf6e5b..d9a040adfad4 100644 --- a/sw/source/core/crsr/crsrsh.cxx +++ b/sw/source/core/crsr/crsrsh.cxx @@ -1107,7 +1107,7 @@ bool SwCursorShell::IsSttPara() const } } } - return m_pCurrentCursor->GetPoint()->nContent == 0; + return m_pCurrentCursor->GetPoint()->GetContentIndex() == 0; } bool SwCursorShell::IsEndPara() const @@ -1126,7 +1126,7 @@ bool SwCursorShell::IsEndPara() const } } } - return m_pCurrentCursor->GetPoint()->nContent == m_pCurrentCursor->GetPointContentNode()->Len(); + return m_pCurrentCursor->GetPoint()->GetContentIndex() == m_pCurrentCursor->GetPointContentNode()->Len(); } bool SwCursorShell::IsEndOfTable() const -- cgit v1.2.3