summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/doc/doclay.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/core/doc/doclay.cxx b/sw/source/core/doc/doclay.cxx
index 66a7af4b0c..c4d348aa0b 100644
--- a/sw/source/core/doc/doclay.cxx
+++ b/sw/source/core/doc/doclay.cxx
@@ -473,7 +473,12 @@ SwFrmFmt *SwDoc::CopyLayoutFmt( const SwFrmFmt& rSource,
// sorge dafuer das auch Fly's in Fly's kopiert werden
aIdx = *pSttNd->EndOfSectionNode();
+ bool bDrawingLayerUndoState = GetIDocumentUndoRedo().DoesDrawUndo();
+ //fdo#36631 disable any undo operations associated with the contact
+ //object itself. They should be managed by SwUndoInsLayFmt.
+ GetIDocumentUndoRedo().DoDrawUndo(false);
pSrcDoc->CopyWithFlyInFly( aRg, 0, aIdx, sal_False, sal_True, sal_True );
+ GetIDocumentUndoRedo().DoDrawUndo(bDrawingLayerUndoState);
}
else
{