]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Start of the edit should not change the current feature.
authornds <nds@opencascade.com>
Tue, 3 Nov 2015 14:48:06 +0000 (17:48 +0300)
committernds <nds@opencascade.com>
Tue, 3 Nov 2015 14:48:06 +0000 (17:48 +0300)
src/ModuleBase/ModuleBase_OperationFeature.cpp

index 2bc23f10d29661e257a570687b85096e68337050..125e7e84b40956c41846ed7792c087387c7e4520 100755 (executable)
@@ -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());