]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Abort sketcher when it is not the last feature: fix for modifications outside of...
authormpv <mpv@opencascade.com>
Wed, 27 May 2015 11:30:35 +0000 (14:30 +0300)
committermpv <mpv@opencascade.com>
Wed, 27 May 2015 11:30:35 +0000 (14:30 +0300)
src/ModuleBase/ModuleBase_Operation.cpp

index fc4e35945d538189b167bb51fa8dc1aaaa563cdd..fea325f68222c0418ea7e2d9b377d802e37a7387 100644 (file)
@@ -183,7 +183,12 @@ void ModuleBase_Operation::abort()
   if (myIsEditing) {
     SessionPtr aMgr = ModelAPI_Session::get();
     DocumentPtr aDoc = aMgr->activeDocument();
+    bool aIsOp = aMgr->isOperation();
+    if (!aIsOp)
+      aMgr->startOperation();
     aDoc->setCurrentFeature(myCurrentFeature, true);
+    if (!aIsOp)
+      aMgr->finishOperation();
     myCurrentFeature = FeaturePtr();
   }
   abortOperation();