]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for issue #74
authormpv <mikhail.ponikarov@opencascade.com>
Mon, 26 May 2014 08:08:15 +0000 (12:08 +0400)
committermpv <mikhail.ponikarov@opencascade.com>
Mon, 26 May 2014 08:08:15 +0000 (12:08 +0400)
src/Model/Model_Document.cpp

index 87ad7e0b1b9ff76537be65847e04afdd0436717d..6f3b4a7a94578322bbdc20b04a396b9202b4b904 100644 (file)
@@ -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()