Salome HOME
Fix regressions in SketchPlugin unit tests
[modules/shaper.git] / src / GeomAPI / GeomAPI_Curve.cpp
index fb5f034ab3df1e0a5601c534f88465ed45ab3f61..9c5330a86d9c1fb7dd1dfd738241d90b9f645603 100644 (file)
@@ -49,8 +49,6 @@ GeomAPI_Curve::GeomAPI_Curve(const std::shared_ptr<GeomAPI_Shape>& theShape)
   if (!anEdge.IsNull()) {
     Handle(Geom_Curve) aCurve = BRep_Tool::Curve(anEdge, myStart, myEnd);
     if (!aCurve.IsNull()) {
-      if (!BRep_Tool::IsClosed(anEdge))
-        aCurve = new Geom_TrimmedCurve(aCurve, myStart, myEnd);
       setImpl(new Handle(Geom_Curve)(aCurve));
     }
   }