]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for problem of rest presentations after opening document (and closing the previous)
authormpv <mpv@opencascade.com>
Mon, 15 Feb 2016 13:32:31 +0000 (16:32 +0300)
committermpv <mpv@opencascade.com>
Mon, 15 Feb 2016 13:32:31 +0000 (16:32 +0300)
src/Model/Model_Application.cpp

index 24a16b9adc591dabeb538e99cede5adc840288fa..704a6afdc81d9b0f1a3c91eb5c1b0d44611f673d 100644 (file)
@@ -81,7 +81,7 @@ void Model_Application::deleteAllDocuments()
 {
   std::map<int, std::shared_ptr<Model_Document> >::iterator aDoc = myDocs.begin();
   for(; aDoc != myDocs.end(); aDoc++) {
-    if (!aDoc->second->isOpened()) // here is main document was closed before subs and closed subs
+    if (aDoc->second->isOpened()) // here is main document was closed before subs and closed subs
       aDoc->second->close(true);
   }
   myDocs.clear();