]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Internal Edit operation in a transaction.
authornds <nds@opencascade.com>
Tue, 3 Nov 2015 13:35:53 +0000 (16:35 +0300)
committernds <nds@opencascade.com>
Tue, 3 Nov 2015 13:35:53 +0000 (16:35 +0300)
src/ModuleBase/ModuleBase_OperationFeature.cpp

index 974a126b369aaa9bd6489f49447308c8ecdc8385..2bc23f10d29661e257a570687b85096e68337050 100755 (executable)
@@ -57,10 +57,7 @@ void ModuleBase_OperationFeature::setEditOperation(const bool theRestartTransact
   myIsEditing = true;
   if (theRestartTransaction) {
     SessionPtr aMgr = ModelAPI_Session::get();
-    DocumentPtr aDoc = aMgr->activeDocument();
-    FeaturePtr aFeature = aDoc->currentFeature(false);
     ModelAPI_Session::get()->finishOperation();
-    FeaturePtr anAFeature = aDoc->currentFeature(false);
 
     QString anId = getDescription()->operationId();
     if (myIsEditing) {