From: dbv Date: Wed, 6 Jul 2016 08:56:00 +0000 (+0300) Subject: Compilation fix. X-Git-Tag: V_2.5.0~238 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e3f13243c9ce5dadf8e1805d19789f7ee2812a88;p=modules%2Fshaper.git Compilation fix. --- diff --git a/src/GeomAPI/GeomAPI_Edge.cpp b/src/GeomAPI/GeomAPI_Edge.cpp index 84f63b17f..0a590bd99 100644 --- a/src/GeomAPI/GeomAPI_Edge.cpp +++ b/src/GeomAPI/GeomAPI_Edge.cpp @@ -227,5 +227,7 @@ bool GeomAPI_Edge::isInPlane(std::shared_ptr thePlane) const double GeomAPI_Edge::length() const { const TopoDS_Edge& anEdge = TopoDS::Edge(impl()); - return GCPnts_AbscissaPoint::Length(BRepAdaptor_Curve(anEdge)); + BRepAdaptor_Curve aBRepAdaptor = BRepAdaptor_Curve(anEdge); + Adaptor3d_Curve* anAdaptor3d = &aBRepAdaptor; + return GCPnts_AbscissaPoint::Length(*anAdaptor3d); }