0022844: Bug in Select2d_SensitiveSegment
authorSAN <>
Wed, 22 Feb 2012 12:49:54 +0000 (12:49 +0000)
committerbugmaster <bugmaster@opencascade.com>
Mon, 5 Mar 2012 15:33:06 +0000 (19:33 +0400)
src/Select2D/Select2D_SensitiveSegment.cxx

index 8747d5f..86eec5d 100755 (executable)
@@ -112,7 +112,7 @@ Matches (const Standard_Real XMin,
   Bnd_Box2d BoundBox;
   BoundBox.Update(XMin-TheTol,YMin-TheTol,XMax+TheTol,YMax+TheTol);
   
-  if (BoundBox.IsOut(mystart)&&BoundBox.IsOut(myend)) return Standard_False;
+  if (BoundBox.IsOut(mystart)||BoundBox.IsOut(myend)) return Standard_False;
   return Standard_True;
 }