From: dbv Date: Thu, 6 Apr 2017 14:23:45 +0000 (+0300) Subject: Fixed crash when creating arc coinciding with already created arc. X-Git-Tag: V_2.7.0~38 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=243d01b1a4804912ddac242e915cbc3a8fa402d5;p=modules%2Fshaper.git Fixed crash when creating arc coinciding with already created arc. --- diff --git a/src/SketchPlugin/SketchPlugin_MacroArc.cpp b/src/SketchPlugin/SketchPlugin_MacroArc.cpp index 54c2f64b7..5bbb32235 100644 --- a/src/SketchPlugin/SketchPlugin_MacroArc.cpp +++ b/src/SketchPlugin/SketchPlugin_MacroArc.cpp @@ -113,7 +113,9 @@ static void intersectShapeAndCircle(const GeomShapePtr& theShape, } } } - theIntersection->setValue(anInterPnt); + if(anInterPnt.get()) { + theIntersection->setValue(anInterPnt); + } }