From: dbv Date: Mon, 3 Apr 2017 07:48:35 +0000 (+0300) Subject: Fixed crash on when creating circle by 3 points. X-Git-Tag: V_2.7.0~99 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=10671023698288fff01b8717696d150419dc4475;p=modules%2Fshaper.git Fixed crash on when creating circle by 3 points. --- 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 {