sw/source/core/txtnode/txtedt.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 379dc869229db17492686ff9b5abe268a6a89c2f
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Thu Sep 29 18:56:19 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Fri Sep 30 08:35:57 2022 +0200

    use more SwPosition::Adjust
    
    part of the process of hiding the internals of SwPosition
    
    Change-Id: I0109d81181bddfdd7b02c8f2f03b67d53b30ee6c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140745
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sw/source/core/txtnode/txtedt.cxx 
b/sw/source/core/txtnode/txtedt.cxx
index da25a9b97d59..0706bf1b1ab7 100644
--- a/sw/source/core/txtnode/txtedt.cxx
+++ b/sw/source/core/txtnode/txtedt.cxx
@@ -1184,7 +1184,7 @@ bool SwTextNode::Convert( SwConversionArgs &rArgs )
                 //SwPaM aCurPaM( *this, *this, nBegin, nBegin + nLen ); <-- 
wrong c-tor, does sth different
                 SwPaM aCurPaM( *this, nBegin );
                 aCurPaM.SetMark();
-                aCurPaM.GetPoint()->nContent = nBegin + nLen;
+                aCurPaM.GetPoint()->SetContent(nBegin + nLen);
 
                 // check script type of selected text
                 SwEditShell *pEditShell = GetDoc().GetEditShell();
@@ -1207,7 +1207,7 @@ bool SwTextNode::Convert( SwConversionArgs &rArgs )
         {
             SwPaM aPaM( *this, rImplicitChange.first );
             aPaM.SetMark();
-            aPaM.GetPoint()->nContent = rImplicitChange.second;
+            aPaM.GetPoint()->SetContent( rImplicitChange.second );
             SetLanguageAndFont( aPaM, rArgs.nConvTargetLang, 
RES_CHRATR_CJK_LANGUAGE, rArgs.pTargetFont, RES_CHRATR_CJK_FONT );
         }
 
@@ -1960,7 +1960,7 @@ void SwTextNode::TransliterateText(
             //SwPaM aCurPaM( *this, *this, nBegin, nBegin + nLen ); <-- wrong 
c-tor, does sth different
             SwPaM aCurPaM( *this, rData.nStart );
             aCurPaM.SetMark();
-            aCurPaM.GetPoint()->nContent = rData.nStart + rData.nLen;
+            aCurPaM.GetPoint()->SetContent( rData.nStart + rData.nLen );
             // replace the changed words
             if ( aCurPaM.GetText() != rData.sChanged )
                 GetDoc().getIDocumentContentOperations().ReplaceRange( 
aCurPaM, rData.sChanged, false );

Reply via email to