X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Edge.cpp;h=06c733f3baa888eb9662eedf0fc27baa2cc549be;hb=0448acdd8e8c1e1638a2cf861e42e915966b2034;hp=d2d0248f29a880bccb33505b4145ed5cabc1c25d;hpb=38afbd899a8645c83e17f2c24a17a2b7414911b4;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Edge.cpp b/src/GeomAPI/GeomAPI_Edge.cpp index d2d0248f2..06c733f3b 100644 --- a/src/GeomAPI/GeomAPI_Edge.cpp +++ b/src/GeomAPI/GeomAPI_Edge.cpp @@ -104,7 +104,10 @@ bool GeomAPI_Edge::isEqual(std::shared_ptr theEdge) { const TopoDS_Shape& aMyShape = const_cast(this)->impl(); const TopoDS_Shape& aInShape = theEdge->impl(); - + + if (aMyShape.ShapeType() != aInShape.ShapeType()) + return false; + double aMyStart, aMyEnd; Handle(Geom_Curve) aMyCurve = BRep_Tool::Curve(TopoDS::Edge(aMyShape), aMyStart, aMyEnd); double aInStart, aInEnd;