]> OCCT Git - occt-copy.git/commitdiff
StdSelect_BRepSelectionTool::GetSensitiveForFace() - add missing check for an empty... CR29181_2
authorkgv <kgv@opencascade.com>
Tue, 19 Mar 2019 08:34:02 +0000 (11:34 +0300)
committerkgv <kgv@opencascade.com>
Sun, 24 Mar 2019 07:32:05 +0000 (10:32 +0300)
src/StdSelect/StdSelect_BRepSelectionTool.cxx

index 5dc8b6ea4ab4eb971a0d559f9d1715da7aaf6afa..b92168cb9c2caf5e4602023ef2ce08d4c08dbc8b 100644 (file)
@@ -741,6 +741,10 @@ Standard_Boolean StdSelect_BRepSelectionTool::GetSensitiveForFace (const TopoDS_
       }
     }
   }
+  if (aWirePoints.IsEmpty())
+  {
+    return Standard_False;
+  }
 
   Handle(TColgp_HArray1OfPnt) aFacePoints = new TColgp_HArray1OfPnt (1, aWirePoints.Length());
   {