diff options
Diffstat (limited to 'UVtools.WPF/Controls/Tools/ToolEditParametersControl.axaml.cs')
-rw-r--r-- | UVtools.WPF/Controls/Tools/ToolEditParametersControl.axaml.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/UVtools.WPF/Controls/Tools/ToolEditParametersControl.axaml.cs b/UVtools.WPF/Controls/Tools/ToolEditParametersControl.axaml.cs index 475edb0..69447da 100644 --- a/UVtools.WPF/Controls/Tools/ToolEditParametersControl.axaml.cs +++ b/UVtools.WPF/Controls/Tools/ToolEditParametersControl.axaml.cs @@ -62,7 +62,7 @@ namespace UVtools.WPF.Controls.Tools HorizontalAlignment = HorizontalAlignment.Stretch, Minimum = (double) modifier.Minimum, Maximum = (double) modifier.Maximum, - Increment = modifier.DecimalPlates == 0 ? 1 : 0.5, + Increment = modifier.Increment, Value = (double)modifier.NewValue, Tag = this, //Width = 100, @@ -70,7 +70,7 @@ namespace UVtools.WPF.Controls.Tools }; if (modifier.DecimalPlates > 0) { - NewValue.FormatString = "F02"; + NewValue.FormatString = $"F{modifier.DecimalPlates}"; } Unit = new TextBlock |