]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Make several parts created in the correct order
authormpv <mpv@opencascade.com>
Fri, 22 May 2015 13:43:45 +0000 (16:43 +0300)
committermpv <mpv@opencascade.com>
Fri, 22 May 2015 13:43:45 +0000 (16:43 +0300)
src/Model/Model_Document.cpp

index df85c6e4b7ad3bc2c45cd6b72ec77b4b4660e945..90e577c05d2ef0c610b97dd4c72799dc2b601c1d 100644 (file)
@@ -544,10 +544,10 @@ FeaturePtr Model_Document::addFeature(std::string theID, const bool theMakeCurre
     aDocToAdd = this;
   }
   if (aFeature) {
-    aDocToAdd->myObjs->addFeature(aFeature, currentFeature(false));
+    aDocToAdd->myObjs->addFeature(aFeature, aDocToAdd->currentFeature(false));
     if (!aFeature->isAction()) {  // do not add action to the data model
       if (theMakeCurrent)  // after all this feature stays in the document, so make it current
-        setCurrentFeature(aFeature, false);
+        aDocToAdd->setCurrentFeature(aFeature, false);
     } else { // feature must be executed
        // no creation event => updater not working, problem with remove part
       aFeature->execute();