From: mpv Date: Thu, 15 Dec 2016 05:39:53 +0000 (+0300) Subject: Fix for the issue #1928 X-Git-Tag: V_2.7.0~351^2~55^2~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=55b130d8537feaa875e9e1b0085bd4543a016322;p=modules%2Fshaper.git Fix for the issue #1928 --- diff --git a/src/Model/Model_Session.cpp b/src/Model/Model_Session.cpp index 4c98ca450..5bb981ea3 100644 --- a/src/Model/Model_Session.cpp +++ b/src/Model/Model_Session.cpp @@ -422,7 +422,8 @@ void Model_Session::processEvent(const std::shared_ptr& theMessa } } if (!aFound) { // if not, the part was removed, so activate the module document - setActiveDocument(moduleDocument()); + if (myCurrentDoc.get()) + setActiveDocument(moduleDocument()); } } }