Salome HOME
[Code coverage SketchAPI]: Remove unnecessary code. Add more unit-tests to improve...
[modules/shaper.git] / src / SketchAPI / SketchAPI_Projection.cpp
index 6d82651e93c7f0383fe2629a1f8cf7fefd6c98e4..8be4c7a2380f089b64a8a1c3f1cf7394d9bed1ec 100644 (file)
@@ -75,9 +75,7 @@ void SketchAPI_Projection::setExternalFeature(const ModelHighAPI_Selection & the
 
 void SketchAPI_Projection::setByExternalName(const std::string& theExternalName)
 {
-  fillAttribute(ModelHighAPI_Selection("EDGE", theExternalName), external());
-
-  execute(true);
+  setExternalFeature(ModelHighAPI_Selection("EDGE", theExternalName));
 }
 
 void SketchAPI_Projection::setIncludeToResult(bool theKeepResult)