From 84c65dc1337015a368f160b588994d1f59a7b2f0 Mon Sep 17 00:00:00 2001 From: dbv Date: Wed, 29 Mar 2017 12:50:18 +0300 Subject: [PATCH] Issue #2066: crash when create Circle with Origin of coordinate sustem selected as Centre point Fixed crash --- src/SketchPlugin/SketchPlugin_MacroCircle.cpp | 2 ++ 1 file changed, 2 insertions(+) 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. -- 2.39.2