]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #2898 : SIGSEGV when selecting the Split feature or one sub-result...
authormpv <mpv@opencascade.com>
Tue, 2 Apr 2019 14:56:20 +0000 (17:56 +0300)
committermpv <mpv@opencascade.com>
Tue, 2 Apr 2019 14:56:39 +0000 (17:56 +0300)
src/GeomAPI/GeomAPI_Wire.cpp

index addd4ccb6c166c390d2997d77dec8ca32c6a1288..2ca5925ab0540ba9205058814de7739166875dbf 100644 (file)
@@ -93,6 +93,8 @@ bool GeomAPI_Wire::isRectangle(std::list<GeomPointPtr>& 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)) {