From: mpv Date: Tue, 2 Apr 2019 14:56:20 +0000 (+0300) Subject: Fix for the issue #2898 : SIGSEGV when selecting the Split feature or one sub-result... X-Git-Tag: V9_3_0rc1~3^2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=92691167bcffe4c144360a3a8ce57e05dda9f2e9;p=modules%2Fshaper.git Fix for the issue #2898 : SIGSEGV when selecting the Split feature or one sub-result in the object browser --- 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)) {