]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Avoid crash on MultiEdit
authorvsv <vitaly.smetannikov@opencascade.com>
Fri, 3 Oct 2014 12:37:10 +0000 (16:37 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Fri, 3 Oct 2014 12:37:10 +0000 (16:37 +0400)
src/PartSet/PartSet_Module.cpp

index bc23a468b2f1f2537c9ca2ee6c0a70b9525dffef..7dabc1dc83a50f102669db305d6b335225b254b5 100644 (file)
@@ -293,6 +293,7 @@ void PartSet_Module::onRestartOperation(std::string theName, ObjectPtr theObject
 
   std::string aKind = aFeature ? aFeature->getKind() : "";
   ModuleBase_Operation* anOperation = createOperation(theName, aKind);
+
   PartSet_OperationSketchBase* aSketchOp = dynamic_cast<PartSet_OperationSketchBase*>(anOperation);
   if (aSketchOp) {
     XGUI_Selection* aSelection = myWorkshop->selector()->selection();
@@ -304,8 +305,8 @@ void PartSet_Module::onRestartOperation(std::string theName, ObjectPtr theObject
     if (aCreateOp)
       aCreateOp->initFeature(aFeature);
     else {
-      PartSet_OperationFeatureEdit* aEditOp = dynamic_cast<PartSet_OperationFeatureEdit*>(anOperation);
-      if (aEditOp) 
+    //  PartSet_OperationFeatureEdit* aEditOp = dynamic_cast<PartSet_OperationFeatureEdit*>(anOperation);
+    //  if (aEditOp) 
         anOperation->setFeature(aFeature);
     }
   } else if (aFeature) {