From f18c47268e2b78e212a7878910201b90821cf633 Mon Sep 17 00:00:00 2001 From: Roberto Alves Date: Tue, 28 Nov 2023 16:41:32 +0000 Subject: [PATCH] Use InvariantCulture when parsing the doubles on OnMatrixValuesChanged --- .../Components/ParameterEditors/OrientationViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/COMET.Web.Common/ViewModels/Components/ParameterEditors/OrientationViewModel.cs b/COMET.Web.Common/ViewModels/Components/ParameterEditors/OrientationViewModel.cs index 282d654b..4525e893 100644 --- a/COMET.Web.Common/ViewModels/Components/ParameterEditors/OrientationViewModel.cs +++ b/COMET.Web.Common/ViewModels/Components/ParameterEditors/OrientationViewModel.cs @@ -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);