]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix the problem is tangent segments are not intersected. V_2.9.0
authormpv <mpv@opencascade.com>
Mon, 9 Oct 2017 14:23:35 +0000 (17:23 +0300)
committermpv <mpv@opencascade.com>
Mon, 9 Oct 2017 14:23:35 +0000 (17:23 +0300)
src/SketcherPrs/SketcherPrs_Tangent.cpp

index 70c96ac102f1c7965a87f81425df625e2316e7ac..bf998d8120b5e8fe1c17ed3d932ab56567ee012c 100644 (file)
@@ -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();
   }