Coverity: Division or modulo by float zero

This commit is contained in:
wmayer
2020-07-19 18:21:15 +02:00
parent 4a494fec69
commit 2ee8ad1854

View File

@@ -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.);