From e096b5754248892300e463be89f4bd99f64348ff Mon Sep 17 00:00:00 2001 From: azv Date: Tue, 12 Feb 2019 13:01:34 +0300 Subject: [PATCH] Issue #2856: Fatal error in sketcher Split when moving the mouse on a circle --- src/SketchPlugin/SketchPlugin_Split.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.2