summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/xml/sdxmlwrp.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/filter/xml/sdxmlwrp.cxx b/sd/source/filter/xml/sdxmlwrp.cxx
index b84854e68b94..f435577fcf96 100644
--- a/sd/source/filter/xml/sdxmlwrp.cxx
+++ b/sd/source/filter/xml/sdxmlwrp.cxx
@@ -453,6 +453,7 @@ bool SdXMLFilter::Import( ErrCode& nError )
comphelper::getProcessComponentContext();
SdDrawDocument* pDoc = mrDocShell.GetDoc();
+ bool const bWasUndo(pDoc->IsUndoEnabled());
pDoc->EnableUndo(false);
pDoc->NewOrLoadCompleted( NEW_DOC );
pDoc->CreateFirstPages();
@@ -780,7 +781,7 @@ bool SdXMLFilter::Import( ErrCode& nError )
fixupOutlinePlaceholderNumberingDepths(pDoc);
- pDoc->EnableUndo(true);
+ pDoc->EnableUndo(bWasUndo);
mrDocShell.ClearUndoBuffer();
return nRet == 0;
}