From 92691167bcffe4c144360a3a8ce57e05dda9f2e9 Mon Sep 17 00:00:00 2001 From: mpv Date: Tue, 2 Apr 2019 17:56:20 +0300 Subject: [PATCH] Fix for the issue #2898 : SIGSEGV when selecting the Split feature or one sub-result in the object browser --- src/GeomAPI/GeomAPI_Wire.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GeomAPI/GeomAPI_Wire.cpp b/src/GeomAPI/GeomAPI_Wire.cpp index addd4ccb6..2ca5925ab 100644 --- a/src/GeomAPI/GeomAPI_Wire.cpp +++ b/src/GeomAPI/GeomAPI_Wire.cpp @@ -93,6 +93,8 @@ bool GeomAPI_Wire::isRectangle(std::list& thePoints) const const TopoDS_Edge& anEdge = anExp.Current(); double aT1, aT2; Handle(Geom_Curve) aC3D = BRep_Tool::Curve(anEdge, aT1, aT2); + if (aC3D.IsNull()) + continue; while (aC3D->IsKind(aTrimmedCurveType)) aC3D = Handle(Geom_TrimmedCurve)::DownCast(aC3D)->BasisCurve(); if (!aC3D.IsNull() && aC3D->IsKind(aLineType)) { -- 2.39.2