From bce1d2c68e0821e6fc391892f2e3e07af248f40e Mon Sep 17 00:00:00 2001 From: mpv Date: Mon, 26 May 2014 12:08:15 +0400 Subject: [PATCH] Fix for issue #74 --- src/Model/Model_Document.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index 87ad7e0b1..6f3b4a7a9 100644 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -172,9 +172,11 @@ void Model_Document::close() subDocument(*aSubIter)->close(); mySubs.clear(); // close this + /* do not close because it can be undoed if (myDoc->CanClose() == CDM_CCS_OK) myDoc->Close(); Model_Application::getApplication()->deleteDocument(myID); + */ } void Model_Document::startOperation() -- 2.39.2