From: azv Date: Fri, 31 Jan 2020 09:30:01 +0000 (+0300) Subject: Fix crash on elliptic arc creation X-Git-Tag: V9_5_0a1~46 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dbf73529cfdee271cc571fe773717ada4b0d5424;p=modules%2Fshaper.git Fix crash on elliptic arc creation --- diff --git a/src/SketchPlugin/SketchPlugin_MacroEllipticArc.cpp b/src/SketchPlugin/SketchPlugin_MacroEllipticArc.cpp index bd8290c0c..3b6e33059 100644 --- a/src/SketchPlugin/SketchPlugin_MacroEllipticArc.cpp +++ b/src/SketchPlugin/SketchPlugin_MacroEllipticArc.cpp @@ -360,7 +360,7 @@ GeomShapePtr SketchPlugin_MacroEllipticArc::getArcShape() return GeomShapePtr(); SketchPlugin_Sketch* aSketch = sketch(); - if (!aSketch) + if (!aSketch || myCenter->distance(myMajorAxis) < 1.e-7) return GeomShapePtr(); GeomPointPtr aCenter(aSketch->to3D(myCenter->x(), myCenter->y()));