]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
If moved feature comes below current feature then it has to be current feature
authorvsv <vitaly.smetannikov@opencascade.com>
Fri, 4 Sep 2015 15:37:12 +0000 (18:37 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Fri, 4 Sep 2015 15:37:25 +0000 (18:37 +0300)
src/Model/Model_Document.cpp

index 668999dd8e4fc51284839be8dd5322c3df5bb82b..21f5f1aa44920b96562d6c710f85e1b1a4faf5c5 100644 (file)
@@ -659,6 +659,8 @@ void Model_Document::removeFeature(FeaturePtr theFeature)
 void Model_Document::moveFeature(FeaturePtr theMoved, FeaturePtr theAfterThis)
 {
   myObjs->moveFeature(theMoved, theAfterThis);
+  if (theAfterThis == currentFeature(true))
+    setCurrentFeature(theMoved, true);
 }
 
 void Model_Document::updateHistory(const std::shared_ptr<ModelAPI_Object> theObject)