]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1918: Unable to create a tangent arc.
authorazv <azv@opencascade.com>
Tue, 23 May 2017 10:03:10 +0000 (13:03 +0300)
committerazv <azv@opencascade.com>
Tue, 23 May 2017 10:03:42 +0000 (13:03 +0300)
Fix crash on tangent arc with infinite radius.

src/SketchPlugin/SketchPlugin_MacroArc.cpp

index 5bbb322358f90792c725358c6a973603614ec281..60c0360d37636f5c2c60fe17026f77144d5bd423 100644 (file)
@@ -618,6 +618,8 @@ void SketchPlugin_MacroArc::fillByTangentEdge()
   aCircBuilder.addTangentCurve(aTangentShape);
 
   std::shared_ptr<GeomAPI_Circ2d> aCircle = aCircBuilder.circle();
+  if (!aCircle)
+    return;
   myCenter = aCircle->center();
 
   // rebuild circle to set start point equal to zero parameter