]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Prevent crash on create circle
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 31 Jul 2014 06:08:20 +0000 (10:08 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 31 Jul 2014 06:08:20 +0000 (10:08 +0400)
src/GeomAlgoAPI/GeomAlgoAPI_SketchBuilder.cpp

index cba0974a5f18101631d2027e54ba359119fcc153..4cd345b868b298f5fe861f6e962325c944a884b9 100644 (file)
@@ -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<TopoDS_Face>();
+        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<TopoDS_Shape>(), TopAbs_VERTEX);
         for ( ; aVert1.More(); aVert1.Next())
         {