From: vsv Date: Thu, 31 Jul 2014 06:08:20 +0000 (+0400) Subject: Prevent crash on create circle X-Git-Tag: V_0.4.4~124 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=47a7d4db4e7ea5e285eb19a1719584b9a4b70610;p=modules%2Fshaper.git Prevent crash on create circle --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.cpp index cba0974a5..4cd345b86 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.cpp @@ -359,6 +359,8 @@ void GeomAlgoAPI_SketchBuilder::fixIntersections( if (aVert2.More()) { // second shape is not inside first, change the shapes order and repeat comparision const TopoDS_Face& aF2 = (*anIter2)->impl(); + if (aF2.ShapeType() != TopAbs_FACE) // TODO: MPV - this workaround must be fixed later by AZV, now it just removes crash + continue; TopExp_Explorer aVert1((*anIter1)->impl(), TopAbs_VERTEX); for ( ; aVert1.More(); aVert1.Next()) {