Salome HOME
Fix for the issue #2276: selecting the center of a circle crashes SHAPER
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Projection.cpp
index a0d8090c80bb2c9b515757176c6300227c68983b..254ccafc99899862470662f77a7daa3ce5eacff0 100644 (file)
@@ -253,7 +253,7 @@ void SketchPlugin_Projection::computeProjection(const std::string& theID)
   aRefAttr->setObject(aProjection);
 
   if (theID == EXTERNAL_FEATURE_ID()) {
-    selection(EXTERNAL_ID())->setValue(aExtFeature->context(), aExtFeature->value());
+    selection(EXTERNAL_ID())->selectValue(aExtFeature);
 
     if (aResult) {
       aResult->setShape(aProjection->lastResult()->shape());