Skip to content

Commit

Permalink
Round spacing to nearest two dec places (stevencohn#1366)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencohn authored Apr 26, 2024
1 parent cd9e5e9 commit ff31516
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
15 changes: 14 additions & 1 deletion OneMore/Commands/Page/FitGridToTextDialog.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions OneMore/Commands/Page/FitGridToTextDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ public FitGridToTextDialog()
public FitGridToTextDialog(string fontSize, double spacing)
: this()
{
sizeBox.Value = (decimal)spacing;
this.spacing = spacing;
this.spacing = Math.Round(spacing, 2);
sizeBox.Value = (decimal)this.spacing;

recommendBox.Text = string.Format(
Resx.FitGridToTextDialog_recommendation, fontSize, spacing);
Resx.FitGridToTextDialog_recommendation, fontSize, this.spacing);
}


Expand Down

0 comments on commit ff31516

Please sign in to comment.