From c6d4ed615f2203fd4fd5d5eb5d92ca562f1959f8 Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 3 Oct 2014 16:37:10 +0400 Subject: [PATCH] Avoid crash on MultiEdit --- src/PartSet/PartSet_Module.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) { -- 2.39.2