From: mpv Date: Fri, 8 May 2015 06:45:38 +0000 (+0300) Subject: Fix for crash on working with not-activated document X-Git-Tag: V_1.2.0~169 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3e81d29d814a16e6f9bac575e9f11a888849f1e7;p=modules%2Fshaper.git Fix for crash on working with not-activated document --- diff --git a/src/Model/Model_Update.cpp b/src/Model/Model_Update.cpp index 93f321bec..93f50a171 100644 --- a/src/Model/Model_Update.cpp +++ b/src/Model/Model_Update.cpp @@ -191,7 +191,9 @@ void Model_Update::updateInDoc(std::shared_ptr theDoc) for (; aRIter != aResults.cend(); aRIter++) { ResultPartPtr aPart = std::dynamic_pointer_cast(*aRIter); if (aPart.get()) { - updateInDoc(aPart->partDoc()); + if (aPart->isActivated()) { + updateInDoc(aPart->partDoc()); + } } } }