sw/source/core/doc/docedt.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 2780b026f912a103aea3f8dc19319b998d19a43a
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: Wed Feb 1 19:07:13 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>

diff --git a/sw/source/core/doc/docedt.cxx b/sw/source/core/doc/docedt.cxx
index 22b35fdf8e20..5d1e296e0b07 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;
                             }
                         }

Reply via email to