From 10671023698288fff01b8717696d150419dc4475 Mon Sep 17 00:00:00 2001 From: dbv Date: Mon, 3 Apr 2017 10:48:35 +0300 Subject: [PATCH] Fixed crash on when creating circle by 3 points. --- src/SketchPlugin/SketchPlugin_Validators.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SketchPlugin/SketchPlugin_Validators.cpp b/src/SketchPlugin/SketchPlugin_Validators.cpp index 2bf0fa121..bb142b319 100755 --- a/src/SketchPlugin/SketchPlugin_Validators.cpp +++ b/src/SketchPlugin/SketchPlugin_Validators.cpp @@ -1149,7 +1149,8 @@ static std::shared_ptr toPoint(const FeaturePtr& theMacroCircle, aPoint3D = anEdge->line()->project(aPoint3D); else if (anEdge->isCircle()) aPoint3D = anEdge->circle()->project(aPoint3D); - aPoint = aSketch->to2D(aPoint3D); + if(aPoint3D) + aPoint = aSketch->to2D(aPoint3D); } } } else { -- 2.39.2