Skip to content

Commit 761dd6e

Browse files
jonathanantoinemattleibow
authored andcommitted
Perf : ButtonContentTypeConverter now using InvariantCulture to parse double
1 parent b095e3d commit 761dd6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controls/src/Core/Button/Button.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
598598
int spacingIndex = spacingFirst ? 0 : (parts.Length == 2 ? 1 : -1);
599599

600600
if (spacingIndex > -1)
601-
spacing = double.Parse(parts[spacingIndex]);
601+
spacing = double.Parse(parts[spacingIndex], CultureInfo.InvariantCulture);
602602

603603
if (positionIndex > -1)
604604
position = (ButtonContentLayout.ImagePosition)Enum.Parse(typeof(ButtonContentLayout.ImagePosition), parts[positionIndex], true);

0 commit comments

Comments
 (0)