Skip to content

Commit

Permalink
PartDesign: [skip ci] fix wrong property values in UI file
Browse files Browse the repository at this point in the history
set step size of angle property to 1.0
  • Loading branch information
wwmayer committed May 24, 2020
1 parent 00be985 commit 8ac6b12
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Mod/PartDesign/App/FeatureChamfer.cpp
Expand Up @@ -54,7 +54,7 @@ PROPERTY_SOURCE(PartDesign::Chamfer, PartDesign::DressUp)

const char* ChamferTypeEnums[] = {"Equal distance", "Two distances", "Distance and Angle", NULL};
const App::PropertyQuantityConstraint::Constraints floatSize = {0.0,FLT_MAX,0.1};
const App::PropertyAngle::Constraints floatAngle = {0.0,180.0,0.1};
const App::PropertyAngle::Constraints floatAngle = {0.0,180.0,1.0};

static App::DocumentObjectExecReturn *validateParameters(int chamferType, double size, double size2, double angle);

Expand Down
12 changes: 6 additions & 6 deletions src/Mod/PartDesign/Gui/TaskChamferParameters.ui
Expand Up @@ -123,7 +123,7 @@ click again to end selection</string>
<item row="0" column="1">
<widget class="Gui::QuantitySpinBox" name="chamferSize" native="true">
<property name="value">
<number>1.000000000000000</number>
<double>1.000000000000000</double>
</property>
</widget>
</item>
Expand Down Expand Up @@ -159,7 +159,7 @@ click again to end selection</string>
<item row="0" column="1">
<widget class="Gui::QuantitySpinBox" name="chamferSize2" native="true">
<property name="value">
<number>1.000000000000000</number>
<double>1.000000000000000</double>
</property>
</widget>
</item>
Expand Down Expand Up @@ -189,16 +189,16 @@ click again to end selection</string>
<item row="0" column="1">
<widget class="Gui::QuantitySpinBox" name="chamferAngle" native="true">
<property name="minimum">
<number>0.000000000000000</number>
<double>0.000000000000000</double>
</property>
<property name="maximum">
<number>180.000000000000000</number>
<double>180.000000000000000</double>
</property>
<property name="singleStep">
<number>1.000000000000000</number>
<double>1.000000000000000</double>
</property>
<property name="value">
<number>45.000000000000000</number>
<double>45.000000000000000</double>
</property>
</widget>
</item>
Expand Down

0 comments on commit 8ac6b12

Please sign in to comment.