From: azv Date: Tue, 12 Feb 2019 10:01:34 +0000 (+0300) Subject: Issue #2856: Fatal error in sketcher Split when moving the mouse on a circle X-Git-Tag: V9_3_0a1~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e096b5754248892300e463be89f4bd99f64348ff;p=modules%2Fshaper.git Issue #2856: Fatal error in sketcher Split when moving the mouse on a circle --- diff --git a/src/SketchPlugin/SketchPlugin_Split.cpp b/src/SketchPlugin/SketchPlugin_Split.cpp index c90b10cc0..7fa6ffbc5 100644 --- a/src/SketchPlugin/SketchPlugin_Split.cpp +++ b/src/SketchPlugin/SketchPlugin_Split.cpp @@ -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;