From: mpv Date: Wed, 21 May 2014 09:48:03 +0000 (+0400) Subject: Switch to the root document of current remove X-Git-Tag: V_0.2~26^2~4^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d19f9bb678f86dd6aa27528a8b51084f5417d027;p=modules%2Fshaper.git Switch to the root document of current remove --- diff --git a/src/Model/Model_PluginManager.cpp b/src/Model/Model_PluginManager.cpp index d6fca2bf7..7a0a20d0a 100644 --- a/src/Model/Model_PluginManager.cpp +++ b/src/Model/Model_PluginManager.cpp @@ -63,7 +63,7 @@ bool Model_PluginManager::hasRootDocument() boost::shared_ptr Model_PluginManager::currentDocument() { - if (!myCurrentDoc) + if (!myCurrentDoc || !Model_Application::getApplication()->hasDocument(myCurrentDoc->id())) myCurrentDoc = rootDocument(); return myCurrentDoc; }