From d481e13e400f2ea0e35c25884e73ccddaffd0f70 Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 3 Nov 2015 17:48:06 +0300 Subject: [PATCH] Start of the edit should not change the current feature. --- src/ModuleBase/ModuleBase_OperationFeature.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ModuleBase/ModuleBase_OperationFeature.cpp b/src/ModuleBase/ModuleBase_OperationFeature.cpp index 2bc23f10d..125e7e84b 100755 --- a/src/ModuleBase/ModuleBase_OperationFeature.cpp +++ b/src/ModuleBase/ModuleBase_OperationFeature.cpp @@ -56,6 +56,8 @@ void ModuleBase_OperationFeature::setEditOperation(const bool theRestartTransact myIsEditing = true; if (theRestartTransaction) { + FeaturePtr aPrevFeature = myPreviousCurrentFeature; + SessionPtr aMgr = ModelAPI_Session::get(); ModelAPI_Session::get()->finishOperation(); @@ -65,6 +67,8 @@ void ModuleBase_OperationFeature::setEditOperation(const bool theRestartTransact } ModelAPI_Session::get()->startOperation(anId.toStdString()); emit beforeStarted(); + + myPreviousCurrentFeature = aPrevFeature; } propertyPanel()->setEditingMode(isEditOperation()); -- 2.39.2