From: vsv Date: Fri, 3 Oct 2014 12:37:10 +0000 (+0400) Subject: Avoid crash on MultiEdit X-Git-Tag: V_0.5~118 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c6d4ed615f2203fd4fd5d5eb5d92ca562f1959f8;p=modules%2Fshaper.git Avoid crash on MultiEdit --- diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index bc23a468b..7dabc1dc8 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -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(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(anOperation); - if (aEditOp) + // PartSet_OperationFeatureEdit* aEditOp = dynamic_cast(anOperation); + // if (aEditOp) anOperation->setFeature(aFeature); } } else if (aFeature) {