]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
A fix to abort sketch operation if nothing is displayed in the viewer but values...
authornds <natalia.donis@opencascade.com>
Fri, 29 May 2015 11:34:47 +0000 (14:34 +0300)
committernds <natalia.donis@opencascade.com>
Fri, 29 May 2015 11:34:47 +0000 (14:34 +0300)
Scenario: start line creation, click 1st point, click 2nd point, click circle feature. The line become visible(to origin) in the previous version. Currently it is aborted, nothing is shown.

src/PartSet/PartSet_Module.cpp

index e33202da32bcaeaac540061ed1cb22d94c50c938..30649eafe0bfa274359b1b20a1b520a64d6b5a64 100644 (file)
@@ -597,7 +597,7 @@ void PartSet_Module::onFeatureTriggered()
   SessionPtr aMgr = ModelAPI_Session::get();
   // 1. check whether the delete should be processed in the module
   ModuleBase_Operation* anOperation = myWorkshop->currentOperation();
-  bool isNestedOp = PartSet_SketcherMgr::isNestedSketchOperation(anOperation);
+  bool isNestedOp = PartSet_SketcherMgr::isNestedCreateOperation(anOperation);
   if (isNestedOp) {
     // in case if in the viewer nothing is displayed, the create operation should not be
     // comitted even if all values of the feature are initialized