]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fixed crash on when creating circle by 3 points.
authordbv <dbv@opencascade.com>
Mon, 3 Apr 2017 07:48:35 +0000 (10:48 +0300)
committerdbv <dbv@opencascade.com>
Mon, 3 Apr 2017 08:12:09 +0000 (11:12 +0300)
src/SketchPlugin/SketchPlugin_Validators.cpp

index 2bf0fa121e48400d1f10980d1cc4e84a1569f121..bb142b319036064e27f6483f72212bc1c44fa663 100755 (executable)
@@ -1149,7 +1149,8 @@ static std::shared_ptr<GeomAPI_Pnt2d> toPoint(const FeaturePtr& theMacroCircle,
             aPoint3D = anEdge->line()->project(aPoint3D);
           else if (anEdge->isCircle())
             aPoint3D = anEdge->circle()->project(aPoint3D);
-          aPoint = aSketch->to2D(aPoint3D);
+          if(aPoint3D)
+            aPoint = aSketch->to2D(aPoint3D);
         }
       }
     } else {