[Libreoffice-commits] core.git: sw/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Sun Oct 3 13:38:51 UTC 2021


 sw/source/core/undo/unredln.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit a4c11b853febd073d310251a4891cdc0ac54e0fa
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Oct 2 13:32:46 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Oct 3 15:38:18 2021 +0200

    cid#1371270 avoid Missing move assignment operator
    
    and...
    
    cid#1371301 Missing move assignment operator
    cid#1371295 Missing move assignment operator
    cid#1371215 Missing move assignment operator
    
    Change-Id: Ib03cddd42128d41e99173e9673bcf6f3cb5ddcbf
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122998
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/core/undo/unredln.cxx b/sw/source/core/undo/unredln.cxx
index ec874cf93a28..eb8caf02878c 100644
--- a/sw/source/core/undo/unredln.cxx
+++ b/sw/source/core/undo/unredln.cxx
@@ -128,7 +128,8 @@ void SwUndoRedline::UndoImpl(::sw::UndoRedoContext & rContext)
                     rPam = *pRedline;
                 else
                 {
-                    rPam = SwPaM(*pRedline->GetMark(), *rPam.GetPoint());
+                    rPam.SetMark();
+                    *rPam.GetMark() = *pRedline->GetMark();
                 }
             }
         }


More information about the Libreoffice-commits mailing list