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

Michael Stahl (via logerrit) logerrit at kemper.freedesktop.org
Fri Apr 3 15:20:20 UTC 2020


 sw/source/core/doc/DocumentContentOperationsManager.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 27aa4b16bf704d0246595750daf57b57ff2577b3
Author:     Michael Stahl <Michael.Stahl at cib.de>
AuthorDate: Tue Mar 31 17:37:51 2020 +0200
Commit:     Michael Stahl <michael.stahl at cib.de>
CommitDate: Fri Apr 3 17:19:33 2020 +0200

    (related: tdf#130685) sw: fix ~SwIndexReg asserts from ...
    
    ... lcl_DeleteRedlines(), if there are redlines immediately consecutive
    that get deleted; merge the SwPaM ring in that case which should help.
    
    Change-Id: I07b67413ad6ee52bc81b89facc40202d0ca75e2a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91595
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.stahl at cib.de>

diff --git a/sw/source/core/doc/DocumentContentOperationsManager.cxx b/sw/source/core/doc/DocumentContentOperationsManager.cxx
index cad942607c0b..7cb7901912cb 100644
--- a/sw/source/core/doc/DocumentContentOperationsManager.cxx
+++ b/sw/source/core/doc/DocumentContentOperationsManager.cxx
@@ -384,6 +384,12 @@ namespace
                                 lcl_SetCpyPos( *pREnd, *pStt, *pCpyStt,
                                                 *pDelPam->GetPoint(), nDelCount );
                             }
+
+                            if (pDelPam->GetNext() && *pDelPam->GetNext()->End() == *pDelPam->Start())
+                            {
+                                *pDelPam->GetNext()->End() = *pDelPam->End();
+                                pDelPam.reset(pDelPam->GetNext());
+                            }
                         }
                     }
                 }


More information about the Libreoffice-commits mailing list