Skip to content

GUIChartEditorSprites / float.TryParse doesn't play well with certain system languages. #4

@RoxaneMorin

Description

@RoxaneMorin

"if (!float.TryParse(text, out float res))" (GUIChartEditorSprites.cs, line 74) failed to parse on my French language system.

Adding globalization parameters fixed the issue:
"if (!float.TryParse(text, System.Globalization.NumberStyles.Any, System.Globalization.CultureInfo.InvariantCulture, out float res))"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions