From: mpv Date: Mon, 9 Oct 2017 14:23:35 +0000 (+0300) Subject: Fix the problem is tangent segments are not intersected. X-Git-Tag: V_2.9.0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5baeb67a02f3c0b3b23270b5a5c5a28b49432a25;p=modules%2Fshaper.git Fix the problem is tangent segments are not intersected. --- diff --git a/src/SketcherPrs/SketcherPrs_Tangent.cpp b/src/SketcherPrs/SketcherPrs_Tangent.cpp index 70c96ac10..bf998d812 100644 --- a/src/SketcherPrs/SketcherPrs_Tangent.cpp +++ b/src/SketcherPrs/SketcherPrs_Tangent.cpp @@ -80,7 +80,7 @@ bool SketcherPrs_Tangent::updateIfReadyToDisplay(double theStep, bool withColor) GeomPointPtr aPnt; GeomShapePtr aIntPnt = aShp1->intersect(aShp2); - if (aIntPnt->isVertex()) { + if (aIntPnt.get() && aIntPnt->isVertex()) { GeomVertexPtr aVetrex(new GeomAPI_Vertex(aIntPnt)); aPnt = aVetrex->point(); }