]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix crash on Sketch Offset update
authorArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Thu, 25 Jun 2020 05:40:00 +0000 (08:40 +0300)
committerArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Thu, 25 Jun 2020 05:40:00 +0000 (08:40 +0300)
src/SketchPlugin/SketchPlugin_Offset.cpp

index a9ccb1c977f4640b6c9b4b518a2e76e7c3584b0a..0bdbb7f0602e7e81b5cc98535d0622ec96753326 100644 (file)
@@ -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)