From: kgv Date: Tue, 19 Mar 2019 08:34:02 +0000 (+0300) Subject: StdSelect_BRepSelectionTool::GetSensitiveForFace() - add missing check for an empty... X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FCR29181_2;p=occt-copy.git StdSelect_BRepSelectionTool::GetSensitiveForFace() - add missing check for an empty sequence --- diff --git a/src/StdSelect/StdSelect_BRepSelectionTool.cxx b/src/StdSelect/StdSelect_BRepSelectionTool.cxx index 5dc8b6ea4a..b92168cb9c 100644 --- a/src/StdSelect/StdSelect_BRepSelectionTool.cxx +++ b/src/StdSelect/StdSelect_BRepSelectionTool.cxx @@ -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()); {