]> OCCT Git - occt.git/commitdiff
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 8747d5f417902eae316081fa4dbe38af7c57402f..86eec5d8a29c7b7687ec8dcb590b38b50cac4d9c 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;
 }