Skip to content

Commit

Permalink
Use InvariantCulture when parsing the doubles on OnMatrixValuesChanged
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbware committed Nov 28, 2023
1 parent 0104f66 commit f18c472
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public Task OnMatrixValuesChanged(int index, string value)
{
var orientationMatrix = this.Orientation.Matrix;

if (double.TryParse(value, out var valueParsed))
if (double.TryParse(value, CultureInfo.InvariantCulture, out var valueParsed))
{
orientationMatrix[index] = valueParsed;
this.Orientation = new Orientation(orientationMatrix, this.AngleFormat);
Expand Down

0 comments on commit f18c472

Please sign in to comment.