sw/source/core/docnode/nodes.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit b70eee2d394dd7249c2de0cb41ccc47f80a05f8f Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Fri Jan 20 10:18:54 2023 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Jan 20 09:32:23 2023 +0000 tdf#150819 crash after a few paste and undo regression from commit 3a02b5f8aae803b7b5a232c724135594483627a4 Author: Noel Grandin <noelgran...@gmail.com> Date: Tue Aug 16 18:44:31 2022 +0200 convert more nNode to SwPosition::GetNode Change-Id: I636590ec5eb28f0db3640464a49f0ab5582ff853 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145864 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sw/source/core/docnode/nodes.cxx b/sw/source/core/docnode/nodes.cxx index 540d5ce7509b..afef83e76df5 100644 --- a/sw/source/core/docnode/nodes.cxx +++ b/sw/source/core/docnode/nodes.cxx @@ -1532,7 +1532,7 @@ void SwNodes::MoveRange( SwPaM & rPam, SwPosition & rPos, SwNodes& rNodes ) pDestNd->SplitContentNode(rPos, nullptr); } - if( rPos.GetNodeIndex() == aEndIdx.GetIndex() ) + if( rPos.GetNode() == aEndIdx.GetNode() ) { --aEndIdx; }