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/doc/DocumentContentOperationsManager.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/source/core/doc/DocumentContentOperationsManager.cxx') diff --git a/sw/source/core/doc/DocumentContentOperationsManager.cxx b/sw/source/core/doc/DocumentContentOperationsManager.cxx index bd8b154b1323..1972be388df2 100644 --- a/sw/source/core/doc/DocumentContentOperationsManager.cxx +++ b/sw/source/core/doc/DocumentContentOperationsManager.cxx @@ -2452,7 +2452,7 @@ bool DocumentContentOperationsManager::MoveRange( SwPaM& rPaM, SwPosition& rPos, // tdf#99692 don't Move() back if that would end up in another node // because moving backward is not necessarily the inverse of forward then. // (but do Move() back if we have split the node) - const bool bNullContent = !bSplit && aSavePam.GetPoint()->nContent == 0; + const bool bNullContent = !bSplit && aSavePam.GetPoint()->GetContentIndex() == 0; if( bNullContent ) { aSavePam.GetPoint()->Adjust(SwNodeOffset(-1)); -- cgit