[Libreoffice-commits] .: sw/source

Caolán McNamara caolan at kemper.freedesktop.org
Wed Jul 27 07:04:37 PDT 2011


 sw/source/core/doc/doclay.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit c234df7779b0e43e4433e71933c22f9e703da735
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Jul 27 14:49:41 2011 +0100

    Resolves: fdo#36631 don't crash on undo of ole2 insert

diff --git a/sw/source/core/doc/doclay.cxx b/sw/source/core/doc/doclay.cxx
index 66a7af4..c4d348a 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
     {


More information about the Libreoffice-commits mailing list