]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Restore abort of operation in ExtrusionCut
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 11 Jun 2015 14:57:01 +0000 (17:57 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 11 Jun 2015 14:57:01 +0000 (17:57 +0300)
src/PartSet/PartSet_WidgetSketchCreator.cpp

index da2af92868a532899d2ead6a7ad366d8e5b6851f..c0a43dbfd229cad6e57ad6a93137e556227e891a 100644 (file)
@@ -151,5 +151,10 @@ bool PartSet_WidgetSketchCreator::focusTo()
 void PartSet_WidgetSketchCreator::onResumed(ModuleBase_Operation* theOp)
 {
   // Abort operation
+  SessionPtr aMgr = ModelAPI_Session::get();
+  bool aIsOp = aMgr->isOperation();
+  // Close transaction
+  if (aIsOp)
+    aMgr->abortOperation();
   theOp->abort();
 }