diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp index 63647033ea..d1b169d73e 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp +++ b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp @@ -3573,6 +3573,9 @@ void ViewProviderSketch::draw(bool temp /*=false*/, bool rebuildinformationlayer int GeoId = 0; int stdcountsegments = hGrp->GetInt("SegmentsPerGeometry", 50); + // value cannot be smaller than 3 + if (stdcountsegments < 3) + stdcountsegments = 3; // RootPoint Points.emplace_back(0.,0.,0.);