From: AMA <> Date: Fri, 17 Feb 2012 11:06:07 +0000 (+0000) Subject: 0022915: crash in iges reader TransferRoots() X-Git-Tag: V6_5_3_beta1~92 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=64efb152a09a40b5562a5eb4cefa65b2fddc87d2;p=occt-copy.git 0022915: crash in iges reader TransferRoots() --- diff --git a/src/IGESGeom/IGESGeom_CircularArc.cxx b/src/IGESGeom/IGESGeom_CircularArc.cxx index 19d463e22a..98d42430d1 100755 --- a/src/IGESGeom/IGESGeom_CircularArc.cxx +++ b/src/IGESGeom/IGESGeom_CircularArc.cxx @@ -120,5 +120,5 @@ 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()); }