From 412f514365ce6646f6221768ed2c46206dd0c91f Mon Sep 17 00:00:00 2001 From: Jan-Marek Glogowski Date: Thu, 11 Aug 2016 18:45:21 +0200 Subject: MM don't keep undo information Doen't make much sense to store undo information for all merge based progress. Actually it even prevents crahes when undoing a merged ODT document. Change-Id: Ic3a3982f3e5eb4f6de9f027a6a5e376c2833e8a5 --- sw/source/uibase/dbui/dbmgr.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sw') diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx index d70b4b93ff5b..9642b265ee1e 100644 --- a/sw/source/uibase/dbui/dbmgr.cxx +++ b/sw/source/uibase/dbui/dbmgr.cxx @@ -78,6 +78,7 @@ #include #include #include +#include #include #include #include @@ -990,6 +991,7 @@ static SfxObjectShell* lcl_CreateWorkingDocument( pWorkWrtShell->GetViewOptions()->SetIdle( false ); pWorkView->AttrChangedNotify( pWorkWrtShell );// in order for SelectShell to be called SwDoc* pWorkDoc = pWorkWrtShell->GetDoc(); + pWorkDoc->GetIDocumentUndoRedo().DoUndo( false ); pWorkDoc->ReplaceDocumentProperties( *pSourceDoc ); if( aType == WorkingDocType::TARGET ) @@ -1530,6 +1532,7 @@ bool SwDBManager::MergeMailFiles(SwWrtShell* pSourceShell, pTargetShell->CalcLayout(); SAL_INFO( "sw.pageframe", "MergeMailFiles pTargetShell->CalcLayout out)" ); pTargetShell->GetViewOptions()->SetIdle( true ); + pTargetDoc->GetIDocumentUndoRedo().DoUndo( true ); for ( auto aLayout : pTargetShell->GetDoc()->GetAllLayouts() ) { aLayout->FreezeLayout(false); -- cgit