diff --git a/src/Mod/Part/App/PrimitiveFeature.cpp b/src/Mod/Part/App/PrimitiveFeature.cpp index 4841f871f6..119078c35f 100644 --- a/src/Mod/Part/App/PrimitiveFeature.cpp +++ b/src/Mod/Part/App/PrimitiveFeature.cpp @@ -74,7 +74,7 @@ namespace Part { - const App::PropertyQuantityConstraint::Constraints apexRange = {0.0,90.0,0.1}; + const App::PropertyQuantityConstraint::Constraints apexRange = {-90.0,90.0,0.1}; const App::PropertyQuantityConstraint::Constraints torusRangeV = {-180.0,180.0,1.0}; const App::PropertyQuantityConstraint::Constraints angleRangeU = {0.0,360.0,1.0}; const App::PropertyQuantityConstraint::Constraints angleRangeV = {-90.0,90.0,1.0}; @@ -801,7 +801,7 @@ Helix::Helix(void) Height.setConstraints(&quantityRange); ADD_PROPERTY_TYPE(Radius,(1.0),"Helix",App::Prop_None,"The radius of the helix"); Radius.setConstraints(&quantityRange); - ADD_PROPERTY_TYPE(Angle,(0.0),"Helix",App::Prop_None,"If angle is > 0 a conical otherwise a cylindircal surface is used"); + ADD_PROPERTY_TYPE(Angle,(0.0),"Helix",App::Prop_None,"If angle is != 0 a conical otherwise a cylindircal surface is used"); Angle.setConstraints(&apexRange); ADD_PROPERTY_TYPE(LocalCoord,(long(0)),"Coordinate System",App::Prop_None,"Orientation of the local coordinate system of the helix"); LocalCoord.setEnums(LocalCSEnums); diff --git a/src/Mod/Part/Gui/DlgPrimitives.cpp b/src/Mod/Part/Gui/DlgPrimitives.cpp index 9fef631f58..f1a410bfbe 100644 --- a/src/Mod/Part/Gui/DlgPrimitives.cpp +++ b/src/Mod/Part/Gui/DlgPrimitives.cpp @@ -261,7 +261,7 @@ DlgPrimitives::DlgPrimitives(QWidget* parent, Part::Primitive* feature) ui->helixPitch->setRange(0, INT_MAX); ui->helixHeight->setRange(0, INT_MAX); ui->helixRadius->setRange(0, INT_MAX); - ui->helixAngle->setRange(0, 90); + ui->helixAngle->setRange(-90, 90); // circle ui->circleRadius->setRange(0, INT_MAX); ui->circleAngle0->setRange(0, 360); @@ -560,7 +560,7 @@ DlgPrimitives::DlgPrimitives(QWidget* parent, Part::Primitive* feature) } } -/* +/* * Destroys the object and frees any allocated resources */ DlgPrimitives::~DlgPrimitives() @@ -1937,7 +1937,7 @@ TaskPrimitives::~TaskPrimitives() } QDialogButtonBox::StandardButtons TaskPrimitives::getStandardButtons() const -{ +{ return QDialogButtonBox::Close| QDialogButtonBox::Ok; }