From: dbv Date: Wed, 29 Mar 2017 09:50:18 +0000 (+0300) Subject: Issue #2066: crash when create Circle with Origin of coordinate sustem selected as... X-Git-Tag: V_2.7.0~153 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=84c65dc1337015a368f160b588994d1f59a7b2f0;p=modules%2Fshaper.git Issue #2066: crash when create Circle with Origin of coordinate sustem selected as Centre point Fixed crash --- diff --git a/src/SketchPlugin/SketchPlugin_MacroCircle.cpp b/src/SketchPlugin/SketchPlugin_MacroCircle.cpp index 7232a6c37..2af73d693 100644 --- a/src/SketchPlugin/SketchPlugin_MacroCircle.cpp +++ b/src/SketchPlugin/SketchPlugin_MacroCircle.cpp @@ -270,6 +270,8 @@ AISObjectPtr SketchPlugin_MacroCircle::getAISObject(AISObjectPtr thePrevious) return AISObjectPtr(); std::shared_ptr aCenter2D = aCircleOnSketch->center(); + if(!aCenter2D.get()) + return AISObjectPtr(); double aRadius = aCircleOnSketch->radius(); // Compute a circle in 3D view.