]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for crash on working with not-activated document
authormpv <mpv@opencascade.com>
Fri, 8 May 2015 06:45:38 +0000 (09:45 +0300)
committermpv <mpv@opencascade.com>
Fri, 8 May 2015 06:45:38 +0000 (09:45 +0300)
src/Model/Model_Update.cpp

index 93f321bec46428277ae56547ec06bec8f0450686..93f50a171d7ac840e913fa6281c2569ea63888d1 100644 (file)
@@ -191,7 +191,9 @@ void Model_Update::updateInDoc(std::shared_ptr<ModelAPI_Document> theDoc)
       for (; aRIter != aResults.cend(); aRIter++) {
         ResultPartPtr aPart = std::dynamic_pointer_cast<ModelAPI_ResultPart>(*aRIter);
         if (aPart.get()) {
-          updateInDoc(aPart->partDoc());
+          if (aPart->isActivated()) {
+            updateInDoc(aPart->partDoc());
+          }
         }
       }
     }