From 5baeb67a02f3c0b3b23270b5a5c5a28b49432a25 Mon Sep 17 00:00:00 2001 From: mpv Date: Mon, 9 Oct 2017 17:23:35 +0300 Subject: [PATCH] Fix the problem is tangent segments are not intersected. --- src/SketcherPrs/SketcherPrs_Tangent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.39.2