From: azv Date: Wed, 17 Jan 2018 11:34:35 +0000 (+0300) Subject: Issue #2404: Fatal error when create arc in tangent mode X-Git-Tag: V_3.0.0RC1~25^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;ds=inline;h=f8bcbd53be9769f65360c2d7d69a21e3abda4462;p=modules%2Fshaper.git Issue #2404: Fatal error when create arc in tangent mode Fix crash while preparing presentation of the Tangent constraint --- diff --git a/src/SketcherPrs/SketcherPrs_PositionMgr.cpp b/src/SketcherPrs/SketcherPrs_PositionMgr.cpp index 85aa05217..3238fb248 100644 --- a/src/SketcherPrs/SketcherPrs_PositionMgr.cpp +++ b/src/SketcherPrs/SketcherPrs_PositionMgr.cpp @@ -332,7 +332,7 @@ std::list getCurves(const GeomPointPtr& thePnt, const SketcherPrs_Sym double aEnd = aCurve->endParam(); GeomCirclePtr aCircle = GeomCirclePtr(new GeomAPI_Circ(aCurve)); GeomPointPtr aProjPnt = aCircle->project(thePnt); - if (thePnt->distance(aProjPnt) <= Precision::Confusion()) + if (aProjPnt && thePnt->distance(aProjPnt) <= Precision::Confusion()) aList.push_back(aResObj); } }