From e3f13243c9ce5dadf8e1805d19789f7ee2812a88 Mon Sep 17 00:00:00 2001 From: dbv Date: Wed, 6 Jul 2016 11:56:00 +0300 Subject: [PATCH] Compilation fix. --- src/GeomAPI/GeomAPI_Edge.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.30.2