Skip to content

Commit

Permalink
272 bug shadows do not accept decimals (#273)
Browse files Browse the repository at this point in the history
* Create draft PR for #272

* fixes an issue when decimals where not properly parsed in shadows

---------

Co-authored-by: IX-BOT <137874481+IX-BOT@users.noreply.github.com>
  • Loading branch information
PTKu and IX-BOT authored Dec 11, 2023
1 parent 593146b commit e325dde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
@code {
private void Change(ChangeEventArgs args)
{
if (Double.TryParse(args.Value.ToString().Replace('.', ','), out var parseValue))
if (Double.TryParse(args.Value.ToString(), out var parseValue))
Onliner.Shadow = parseValue;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
@code {
private void Change(ChangeEventArgs args)
{
if (Single.TryParse(args.Value.ToString().Replace('.', ','), out var parseValue))
if (Single.TryParse(args.Value.ToString(), out var parseValue))
Onliner.Shadow = parseValue;
}
}

0 comments on commit e325dde

Please sign in to comment.