From: mpv Date: Mon, 15 Feb 2016 13:32:31 +0000 (+0300) Subject: Fix for problem of rest presentations after opening document (and closing the previous) X-Git-Tag: V_2.2.0~119 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ff842c0ebc02c517eab3d5b990a31a3d3877d7fd;p=modules%2Fshaper.git Fix for problem of rest presentations after opening document (and closing the previous) --- diff --git a/src/Model/Model_Application.cpp b/src/Model/Model_Application.cpp index 24a16b9ad..704a6afdc 100644 --- a/src/Model/Model_Application.cpp +++ b/src/Model/Model_Application.cpp @@ -81,7 +81,7 @@ void Model_Application::deleteAllDocuments() { std::map >::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();