sw/source/core/doc/docedt.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 1ca9f7fc85db66c7c6ba25d43f05476ea787dfc4 Author: László Németh <nem...@numbertext.org> AuthorDate: Wed Feb 1 18:00:25 2023 +0100 Commit: László Németh <nem...@numbertext.org> CommitDate: Thu Feb 2 08:54:09 2023 +0000 tdf#152738 sw: fix lost SwPosition in spelling dialog Which resulted broken spell checking. Regression from commit b484e5d9e0d22b794c2d1c73741191836158a4ad "use more SwPosition::Assign". Change-Id: I7be215f629ed73a3009f8358172ee3a7e2e72ffc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146465 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Tested-by: Jenkins Reviewed-by: László Németh <nem...@numbertext.org> Tested-by: László Németh <nem...@numbertext.org> (cherry picked from commit 2780b026f912a103aea3f8dc19319b998d19a43a) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146407 diff --git a/sw/source/core/doc/docedt.cxx b/sw/source/core/doc/docedt.cxx index 3a085c1d060e..7898af3b540d 100644 --- a/sw/source/core/doc/docedt.cxx +++ b/sw/source/core/doc/docedt.cxx @@ -607,8 +607,8 @@ uno::Any SwDoc::Spell( SwPaM& rPaM, pSpellArgs->pStartPos->GetContentIndex(); if( nCurrNd != nEndNd ) { - pSttPos->Assign(nCurrNd); - pEndPos->Assign(nCurrNd); + pSttPos->Assign(nCurrNd, pSttPos->GetContentIndex()); + pEndPos->Assign(nCurrNd, pEndPos->GetContentIndex()); nCurrNd = nEndNd; } }