From: nds Date: Tue, 3 Nov 2015 14:48:06 +0000 (+0300) Subject: Start of the edit should not change the current feature. X-Git-Tag: V_2.0.0_alfa1~6^2~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d481e13e400f2ea0e35c25884e73ccddaffd0f70;p=modules%2Fshaper.git Start of the edit should not change the current feature. --- 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());