From: azv Date: Tue, 23 May 2017 10:03:10 +0000 (+0300) Subject: Issue #1918: Unable to create a tangent arc. X-Git-Tag: V_2.7.1.1~31 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=81c88369b8540565fb46c0ff9b790c669ed9491b;p=modules%2Fshaper.git Issue #1918: Unable to create a tangent arc. Fix crash on tangent arc with infinite radius. --- diff --git a/src/SketchPlugin/SketchPlugin_MacroArc.cpp b/src/SketchPlugin/SketchPlugin_MacroArc.cpp index 5bbb32235..60c0360d3 100644 --- a/src/SketchPlugin/SketchPlugin_MacroArc.cpp +++ b/src/SketchPlugin/SketchPlugin_MacroArc.cpp @@ -618,6 +618,8 @@ void SketchPlugin_MacroArc::fillByTangentEdge() aCircBuilder.addTangentCurve(aTangentShape); std::shared_ptr aCircle = aCircBuilder.circle(); + if (!aCircle) + return; myCenter = aCircle->center(); // rebuild circle to set start point equal to zero parameter