]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/GeomAPI/GeomAPI_Curve.cpp
Salome HOME
Debug of sketcher debug validators
[modules/shaper.git] / src / GeomAPI / GeomAPI_Curve.cpp
index 77bf7d9a2660842d0fee494d689961fbe6b57106..53a84581054f743f48e1bb1dafadb93e72b5fde6 100644 (file)
@@ -28,7 +28,7 @@ GeomAPI_Curve::GeomAPI_Curve(const boost::shared_ptr<GeomAPI_Shape>& theShape)
     Standard_Real aStart, anEnd;
     Handle(Geom_Curve) aCurve = BRep_Tool::Curve(anEdge, aStart, anEnd);
     if (!aCurve.IsNull()) {
-      setImpl(&aCurve);
+      setImpl(new Handle(Geom_Curve)(aCurve));
     }
   }
 }