Salome HOME
Compilation fix.
authordbv <dbv@opencascade.com>
Wed, 6 Jul 2016 08:56:00 +0000 (11:56 +0300)
committerdbv <dbv@opencascade.com>
Wed, 6 Jul 2016 08:56:26 +0000 (11:56 +0300)
src/GeomAPI/GeomAPI_Edge.cpp

index 84f63b17f011665b7b868ce1383c14eaf1cef059..0a590bd9909a3de505c52741e7975800d5ad8678 100644 (file)
@@ -227,5 +227,7 @@ bool GeomAPI_Edge::isInPlane(std::shared_ptr<GeomAPI_Pln> thePlane) const
 double GeomAPI_Edge::length() const
 {
   const TopoDS_Edge& anEdge = TopoDS::Edge(impl<TopoDS_Shape>());
-  return GCPnts_AbscissaPoint::Length(BRepAdaptor_Curve(anEdge));
+  BRepAdaptor_Curve aBRepAdaptor = BRepAdaptor_Curve(anEdge);
+  Adaptor3d_Curve* anAdaptor3d = &aBRepAdaptor;
+  return GCPnts_AbscissaPoint::Length(*anAdaptor3d);
 }