Salome HOME
Task 2.12. New entities: ellipses and arcs of ellipses (issue #3003)
[modules/shaper.git] / src / SketchAPI / SketchAPI_MacroEllipse.cpp
index c3ed48080d6f9d365379ccf597a359d7fc3aae32..3a4ef16d3631b4191c670a57d20d7d3bc4988ccb 100644 (file)
@@ -59,7 +59,8 @@ static CompositeFeaturePtr sketch(FeaturePtr theFeature)
 SketchAPI_MacroEllipse::SketchAPI_MacroEllipse(const std::shared_ptr<ModelAPI_Feature>& theFeature)
 : SketchAPI_SketchEntity(theFeature)
 {
-  initialize();
+  if (initialize())
+    mySketch = sketch(theFeature);
 }
 
 SketchAPI_MacroEllipse::SketchAPI_MacroEllipse(const std::shared_ptr<ModelAPI_Feature>& theFeature,