diff --git a/tools/ColorTool/ColorTool/XmlSchemeParser.cs b/tools/ColorTool/ColorTool/XmlSchemeParser.cs index 7afea4d8d..a28aea54e 100644 --- a/tools/ColorTool/ColorTool/XmlSchemeParser.cs +++ b/tools/ColorTool/ColorTool/XmlSchemeParser.cs @@ -3,6 +3,7 @@ // Licensed under the terms described in the LICENSE file in the root of this project. // using System; +using System.Globalization; using System.Xml; using static ColorTool.ConsoleAPI; @@ -45,15 +46,15 @@ namespace ColorTool { if (c.InnerText == RED_KEY) { - r = (int)(255 * Convert.ToDouble(c.NextSibling.InnerText)); + r = (int)(255 * Convert.ToDouble(c.NextSibling.InnerText, CultureInfo.InvariantCulture)); } else if (c.InnerText == GREEN_KEY) { - g = (int)(255 * Convert.ToDouble(c.NextSibling.InnerText)); + g = (int)(255 * Convert.ToDouble(c.NextSibling.InnerText, CultureInfo.InvariantCulture)); } else if (c.InnerText == BLUE_KEY) { - b = (int)(255 * Convert.ToDouble(c.NextSibling.InnerText)); + b = (int)(255 * Convert.ToDouble(c.NextSibling.InnerText, CultureInfo.InvariantCulture)); } else {