diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-09-04 16:21:56 +0200 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-09-19 10:08:55 +0200 |
commit | cf4a911d483805866db55a4840576da71f93cba7 (patch) | |
tree | c03bec44e51d3aed4611fb4d525131103e83f4c7 | |
parent | fcaff77cd1cd24f38f764e2d544b8652c8f5c535 (diff) |
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
-rw-r--r-- | sw/source/core/undo/unovwr.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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(), |