summaryrefslogtreecommitdiff
path: root/sw/source/core/doc
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2019-04-25 18:31:08 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2019-04-26 15:55:29 +0200
commit4f0b568ef35353b276ae560fb43502b6f6b2bfdb (patch)
treeb336c36b1207fa59ee6402ec2673e3017be48760 /sw/source/core/doc
parent41df42a8dc758571dd7635c358a09bf412051649 (diff)
tdf#38703 i#42807 sw: stop clearing Undo stack on ToX Update
Reverts the "fix" for i#42807 from CWS swqcore08 since there's now SwUndoUpdateIndex. Change-Id: I6e71513c4a6da57bafcbc3d57b8fa113153d6c2d Reviewed-on: https://gerrit.libreoffice.org/71324 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'sw/source/core/doc')
-rw-r--r--sw/source/core/doc/doc.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx
index de810a488f33..cee2e7745278 100644
--- a/sw/source/core/doc/doc.cxx
+++ b/sw/source/core/doc/doc.cxx
@@ -1733,8 +1733,6 @@ void SwDoc::ChangeTOX(SwTOXBase & rTOX, const SwTOXBase & rNew,
{
if (GetIDocumentUndoRedo().DoesUndo())
{
- GetIDocumentUndoRedo().DelAllUndoObj();
-
GetIDocumentUndoRedo().AppendUndo(
std::make_unique<SwUndoTOXChange>(this, &rTOX, rNew));
}