]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
An additional fix for the issue 2861 : Can't use a parameter created on the fly in...
authormpv <mpv@opencascade.com>
Wed, 13 Feb 2019 11:20:34 +0000 (14:20 +0300)
committermpv <mpv@opencascade.com>
Wed, 13 Feb 2019 11:20:34 +0000 (14:20 +0300)
src/Model/Model_Document.cpp

index 337161e6f40128d7d8162c04249865a0953b1c47..bf42687a936f822b91ffd9299d6f6678d5a627d7 100755 (executable)
@@ -1026,7 +1026,8 @@ FeaturePtr Model_Document::addFeature(std::string theID, const bool theMakeCurre
         }
       }
       // #2861: if the parameter is added, add it after parameters existing in the list
-      if (aCurrent.get() && aFeature->getKind() == "Parameter") {
+      if (aCurrent.get() &&
+          (aFeature->getKind() == "Parameter" || aFeature->getKind() == "ParametersMgr")) {
         int anIndex = kUNDEFINED_FEATURE_INDEX;
         for(FeaturePtr aNextFeat = myObjs->nextFeature(aCurrent, anIndex);
             aNextFeat.get() && aNextFeat->getKind() == "Parameter";