[Libreoffice-commits] core.git: sw/source
Michael Stahl (via logerrit)
logerrit at kemper.freedesktop.org
Fri Aug 9 15:03:28 UTC 2019
sw/source/core/doc/DocumentContentOperationsManager.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 844f9fa6ba7108b12758202c5fd08daa2a707641
Author: Michael Stahl <Michael.Stahl at cib.de>
AuthorDate: Fri Aug 9 12:11:17 2019 +0200
Commit: Michael Stahl <Michael.Stahl at cib.de>
CommitDate: Fri Aug 9 17:01:52 2019 +0200
tdf#126626 sw: fix duplicate SwUndoInsLayFormat in single-node Copy
Fly Undo created later in SwUndoInserts::SetInsertRange(); suppress it
in DocumentContentOperationsManager::CopyImpl().
(regression from 28b77c89dfcafae82cf2a6d85731b643ff9290e5)
Change-Id: I3b8756c20a7472029748d9e64a941320fc10b19f
Reviewed-on: https://gerrit.libreoffice.org/77190
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 207cb005d9a2..e86296671638 100644
--- a/sw/source/core/doc/DocumentContentOperationsManager.cxx
+++ b/sw/source/core/doc/DocumentContentOperationsManager.cxx
@@ -4614,6 +4614,8 @@ bool DocumentContentOperationsManager::CopyImpl( SwPaM& rPam, SwPosition& rPos,
// copy at-char flys in rPam
aInsPos = *pDestTextNd; // update to new (start) node for flys
+ // tdf#126626 prevent duplicate Undos
+ ::sw::UndoGuard const ug(pDoc->GetIDocumentUndoRedo());
CopyFlyInFlyImpl(aRg, &rPam, aInsPos, false);
break;
More information about the Libreoffice-commits
mailing list