]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix of creation of sketch-distance to external sketch elements: first to an edge...
authormpv <mikhail.ponikarov@opencascade.com>
Tue, 23 Dec 2014 14:26:29 +0000 (17:26 +0300)
committermpv <mikhail.ponikarov@opencascade.com>
Tue, 23 Dec 2014 14:26:29 +0000 (17:26 +0300)
src/GeomAPI/GeomAPI_Vertex.cpp

index 4c51908717d167c62bea1a59c1b12246ded02696..3c9e0a0b23a48f1090be2bed1d1036009e121821 100644 (file)
@@ -40,6 +40,9 @@ bool GeomAPI_Vertex::isEqual(std::shared_ptr<GeomAPI_Shape> theVert)
   const TopoDS_Shape& aMyShape = const_cast<GeomAPI_Vertex*>(this)->impl<TopoDS_Shape>();
   const TopoDS_Shape& aInShape = theVert->impl<TopoDS_Shape>();
 
+  if (aMyShape.ShapeType() != aInShape.ShapeType())
+    return false;
+
   TopoDS_Vertex aVertex1 = TopoDS::Vertex(aMyShape);
   gp_Pnt aPoint1 = BRep_Tool::Pnt(aVertex1);