From: mpv Date: Thu, 15 Dec 2016 05:39:53 +0000 (+0300) Subject: Fix for the issue #1928 X-Git-Tag: before_porting_8.2.0~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8f060aedd5949990421a96e3b4086f43efa13d24;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()); } } }