diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2016-08-11 18:45:21 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-06-18 13:19:25 +0200 |
commit | f4d9bc000100cd9231898ddf94c48d45cd9469b0 (patch) | |
tree | b19fc4c8365711c92b452664906b3c549e76be89 | |
parent | 6f28259479d28570dbb7258531bfe264d03da1fc (diff) |
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.
Conflicts:
sw/source/uibase/dbui/dbmgr.cxx
Change-Id: Ic3a3982f3e5eb4f6de9f027a6a5e376c2833e8a5
Reviewed-on: https://gerrit.libreoffice.org/56023
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
-rw-r--r-- | sw/source/uibase/dbui/dbmgr.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx index 2f2e76a072c3..5ab4d70aaa9d 100644 --- a/sw/source/uibase/dbui/dbmgr.cxx +++ b/sw/source/uibase/dbui/dbmgr.cxx @@ -79,6 +79,7 @@ #include <IDocumentLinksAdministration.hxx> #include <IDocumentContentOperations.hxx> #include <IDocumentFieldsAccess.hxx> +#include <IDocumentUndoRedo.hxx> #include <swwait.hxx> #include <swunohelper.hxx> #include <dbui.hrc> @@ -993,6 +994,7 @@ static SfxObjectShell* lcl_CreateWorkingDocument( SwWrtShell* pWorkWrtShell = pWorkView->GetWrtShellPtr(); 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 ) @@ -1556,6 +1558,7 @@ bool SwDBManager::MergeMailFiles(SwWrtShell* pSourceShell, // Unfreeze target document layouts and correct all PageDescs. pTargetShell->CalcLayout(); + pTargetDoc->GetIDocumentUndoRedo().DoUndo( true ); for ( auto aLayout : pTargetShell->GetDoc()->GetAllLayouts() ) { aLayout->FreezeLayout(false); |