diff --git a/Geo/GeoInterpolation.cpp b/Geo/GeoInterpolation.cpp index d70eb35e6e1245b2bfab9c2dc26b5778f5b865ce..f372cbdd40c972c61505dee723db3764d53fe774 100644 --- a/Geo/GeoInterpolation.cpp +++ b/Geo/GeoInterpolation.cpp @@ -467,7 +467,7 @@ bool iSRuledSurfaceASphere(Surface *s, SPoint3 ¢er, double &radius) } } } - if (isSphere){ + if (isSphere && C[0]){ Vertex *p = C[0]->beg; radius = sqrt ((p->Pos.X - center.x())+ (p->Pos.Y - center.y())+