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-Tag: V_2.3.0~311 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=56c3f4abe8b191d5255880ac2efe79558e6ed187;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 {