From 8737f01015d406caa2643f9acd2049ccf31920c3 Mon Sep 17 00:00:00 2001 From: kgv Date: Tue, 19 Mar 2019 11:34:02 +0300 Subject: [PATCH] StdSelect_BRepSelectionTool::GetSensitiveForFace() - add missing check for an empty sequence --- src/StdSelect/StdSelect_BRepSelectionTool.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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()); { -- 2.39.5