From: vsv Date: Fri, 4 Sep 2015 15:37:12 +0000 (+0300) Subject: If moved feature comes below current feature then it has to be current feature X-Git-Tag: V_1.4.0_beta4~112 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b5a519fd9e5b52c7fba708d39a7bfc807a8bdba4;p=modules%2Fshaper.git If moved feature comes below current feature then it has to be current feature --- diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index 668999dd8..21f5f1aa4 100644 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -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 theObject)