From: Artem Zhidkov Date: Thu, 25 Jun 2020 05:40:00 +0000 (+0300) Subject: Fix crash on Sketch Offset update X-Git-Tag: V9_6_0a1~60^2~42 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bb71524b70caa5a3d6ede130c40b612af62ca3b0;p=modules%2Fshaper.git Fix crash on Sketch Offset update --- diff --git a/src/SketchPlugin/SketchPlugin_Offset.cpp b/src/SketchPlugin/SketchPlugin_Offset.cpp index a9ccb1c97..0bdbb7f06 100644 --- a/src/SketchPlugin/SketchPlugin_Offset.cpp +++ b/src/SketchPlugin/SketchPlugin_Offset.cpp @@ -440,7 +440,7 @@ void SketchPlugin_Offset::mkBSpline (FeaturePtr& theResult, void SketchPlugin_Offset::attributeChanged(const std::string& theID) { - removeCreated(); +// removeCreated(); } void SketchPlugin_Offset::removeCreated() @@ -458,8 +458,8 @@ void SketchPlugin_Offset::removeCreated() FeaturePtr aFeature = ModelAPI_Feature::feature(*anIter); aSet.insert(aFeature); } - ModelAPI_Tools::removeFeaturesAndReferences(aSet); aRefListOfCreated->clear(); + ModelAPI_Tools::removeFeaturesAndReferences(aSet); } bool SketchPlugin_Offset::customAction(const std::string& theActionId)