Prevent attempting to create an infinite helix

This commit is contained in:
bgbsww
2023-11-13 21:34:45 -05:00
committed by wwmayer
parent 0d1ce2cbb1
commit 10f257ac59

View File

@@ -1153,7 +1153,7 @@ HelixPrimitive::HelixPrimitive(std::shared_ptr<Ui_DlgPrimitives> ui, Part::Helix
ui->helixPitch->setRange(0, INT_MAX);
ui->helixHeight->setRange(0, INT_MAX);
ui->helixRadius->setRange(0, INT_MAX);
ui->helixAngle->setRange(-90, 90);
ui->helixAngle->setRange(-89.99, 89.99);
if (feature) {
ui->helixPitch->setValue(feature->Pitch.getQuantityValue());