]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2856: Fatal error in sketcher Split when moving the mouse on a circle
authorazv <azv@opencascade.com>
Tue, 12 Feb 2019 10:01:34 +0000 (13:01 +0300)
committerazv <azv@opencascade.com>
Tue, 12 Feb 2019 10:01:34 +0000 (13:01 +0300)
src/SketchPlugin/SketchPlugin_Split.cpp

index c90b10cc05d952340a0cc6602d477f79e2860d17..7fa6ffbc5cb151bbd1a12093036692795505202a 100644 (file)
@@ -621,7 +621,8 @@ void SketchPlugin_Split::fillObjectShapes(const ObjectPtr& theObject,
     ModelGeomAlgo_Point2D::getPointsInsideShape_p(aFeatureShape, aRefAttributes, aC->pnt(),
                                                 aX->dir(), aY, aPoints, aPointToAttributes);
 
-    GeomAlgoAPI_ShapeTools::splitShape_p(aFeatureShape, aPoints, aShapes);
+    if (!aPoints.empty())
+      GeomAlgoAPI_ShapeTools::splitShape_p(aFeatureShape, aPoints, aShapes);
   }
   myCashedShapes[theObject] = aShapes;
   myCashedReferences[theObject] = aPointToAttributes;