From: vsv Date: Thu, 11 Jun 2015 14:57:01 +0000 (+0300) Subject: Restore abort of operation in ExtrusionCut X-Git-Tag: V_1.3.0~245 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9538e90a34943c180b4ef946ccdc68bf853d418c;p=modules%2Fshaper.git Restore abort of operation in ExtrusionCut --- diff --git a/src/PartSet/PartSet_WidgetSketchCreator.cpp b/src/PartSet/PartSet_WidgetSketchCreator.cpp index da2af9286..c0a43dbfd 100644 --- a/src/PartSet/PartSet_WidgetSketchCreator.cpp +++ b/src/PartSet/PartSet_WidgetSketchCreator.cpp @@ -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(); }