0022915: crash in iges reader TransferRoots()
authorAMA <>
Fri, 17 Feb 2012 11:06:07 +0000 (11:06 +0000)
committerbugmaster <bugmaster@opencascade.com>
Mon, 5 Mar 2012 15:32:42 +0000 (19:32 +0400)
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());
 }