From: mpv Date: Fri, 22 May 2015 13:43:45 +0000 (+0300) Subject: Make several parts created in the correct order X-Git-Tag: V_1.2.0~110^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8254637d39365d581b0f09a582a2fef3a58232a3;p=modules%2Fshaper.git Make several parts created in the correct order --- diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index df85c6e4b..90e577c05 100644 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -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();