diff --git a/src/AIS/AIS_RadiusDimension.cxx b/src/AIS/AIS_RadiusDimension.cxx index 64adef0cc9..435448d492 100644 --- a/src/AIS/AIS_RadiusDimension.cxx +++ b/src/AIS/AIS_RadiusDimension.cxx @@ -238,9 +238,8 @@ Standard_Boolean AIS_RadiusDimension::IsValidAnchor (const gp_Circ& theCircle, { gp_Pln aCirclePlane (theCircle.Location(), theCircle.Axis().Direction()); Standard_Real anAnchorDist = theAnchor.Distance (theCircle.Location()); - Standard_Real aRadius = myCircle.Radius(); - return Abs (anAnchorDist - aRadius) <= Precision::Confusion() + return anAnchorDist > Precision::Confusion() && aCirclePlane.Contains (theAnchor, Precision::Confusion()); }