From b5a519fd9e5b52c7fba708d39a7bfc807a8bdba4 Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 4 Sep 2015 18:37:12 +0300 Subject: [PATCH] If moved feature comes below current feature then it has to be current feature --- src/Model/Model_Document.cpp | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.39.2