sd/source/filter/ppt/pptin.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit bf8ba674089cea3b335c0668a40bc42274f4146a Author: Tamás Zolnai <tamas.zol...@collabora.com> Date: Sat Sep 2 06:45:35 2017 +0200 tdf#109052: Crash after PPT import when undo is disabled It was not a good idea to enable undo unconditionally. Use the saved undo state instead. Change-Id: I60875da23466b6ef54f034b447d636bdbab38151 Reviewed-on: https://gerrit.libreoffice.org/41823 Reviewed-by: Tamás Zolnai <tamas.zol...@collabora.com> Tested-by: Tamás Zolnai <tamas.zol...@collabora.com> (cherry picked from commit a726c69ffef2533545e316172e3e1494b8ad327e) Reviewed-on: https://gerrit.libreoffice.org/41825 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Michael Stahl <mst...@redhat.com> diff --git a/sd/source/filter/ppt/pptin.cxx b/sd/source/filter/ppt/pptin.cxx index 3b18699b2e9c..738e865cb23a 100644 --- a/sd/source/filter/ppt/pptin.cxx +++ b/sd/source/filter/ppt/pptin.cxx @@ -237,6 +237,7 @@ bool ImplSdPPTImport::Import() return false; pSdrModel->setLock(true); + const bool bSavedUndoEnabled = pSdrModel->IsUndoEnabled(); pSdrModel->EnableUndo(false); SdrOutliner& rOutl = mpDoc->GetDrawOutliner(); @@ -1407,7 +1408,7 @@ bool ImplSdPPTImport::Import() xDocProps->setTemplateName(OUString()); pSdrModel->setLock(false); - pSdrModel->EnableUndo(true); + pSdrModel->EnableUndo(bSavedUndoEnabled); return bOk; }
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits