From cf4a911d483805866db55a4840576da71f93cba7 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 4 Sep 2018 16:21:56 +0200 Subject: sw: SwUndoOverwrite::CanGrouping() should ignore redlines for inserted ... characters; if the character is inserted at the end of the node, the aPam end position will have an invalid index Len()+1 and the DeleteRedline() will correct existing redlines onto that index, which will assert later. Change-Id: Ia31cd1937385fb10fd284e7add61c39f96b917ab --- sw/source/core/undo/unovwr.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/sw/source/core/undo/unovwr.cxx b/sw/source/core/undo/unovwr.cxx index 67df96c92e26..da8ff670d186 100644 --- a/sw/source/core/undo/unovwr.cxx +++ b/sw/source/core/undo/unovwr.cxx @@ -120,6 +120,7 @@ bool SwUndoOverwrite::CanGrouping( SwDoc* pDoc, SwPosition& rPos, rCC.isLetterNumeric( aInsStr, aInsStr.getLength()-1 ) ) return false; + if (!bInsChar && rPos.nContent.GetIndex() < pDelTextNd->GetText().getLength()) { SwRedlineSaveDatas aTmpSav; SwPaM aPam( rPos.nNode, rPos.nContent.GetIndex(), -- cgit v1.2.3