From: nds Date: Mon, 4 Apr 2016 05:19:54 +0000 (+0300) Subject: Issue #1343. Improvement of Extrusion and Revolution operations: Bug correction:... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c50717d42aba5c1a4904deceea97afb0efaa611b;p=modules%2Fshaper.git Issue #1343. Improvement of Extrusion and Revolution operations: Bug correction: start Extrusion, select plane, abort Sketch, move over plane. Error message is about modification out of transaction. --- diff --git a/src/PartSet/PartSet_WidgetSketchCreator.cpp b/src/PartSet/PartSet_WidgetSketchCreator.cpp index 91093ed8e..d7130e5f6 100644 --- a/src/PartSet/PartSet_WidgetSketchCreator.cpp +++ b/src/PartSet/PartSet_WidgetSketchCreator.cpp @@ -328,6 +328,11 @@ bool PartSet_WidgetSketchCreator::focusTo() { if (isSelectionMode()) { activateSelectionControl(); + + SessionPtr aMgr = ModelAPI_Session::get(); + bool aIsOp = aMgr->isOperation(); + if (!aIsOp) + aMgr->startOperation(myFeature->getKind()); return true; } else {