0022915: crash in iges reader TransferRoots()
[occt.git] / src / IGESGeom / IGESGeom_CircularArc.cxx
index 19d463e..98d4243 100755 (executable)
 
     Standard_Boolean IGESGeom_CircularArc::IsClosed () const
 {
-  return ((theStart.X() == theEnd.X()) && (theStart.Y() == theEnd.Y()));
+  return (Abs (theStart.X() - theEnd.X()) < Precision::PConfusion() && Abs (theStart.Y() - theEnd.Y()) < Precision::PConfusion());
 }