From 4ee60445f0f7dc76bbb68d60465555dfbd8bffdd Mon Sep 17 00:00:00 2001 From: Tichau Date: Mon, 24 Apr 2017 19:42:02 +0200 Subject: [PATCH] Fixed: Issue where the scale was not applied correctly for image conversions depending on the application current language --- Application/FileConverter/ConversionPreset/ConversionPreset.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Application/FileConverter/ConversionPreset/ConversionPreset.cs b/Application/FileConverter/ConversionPreset/ConversionPreset.cs index bd550bf..2ec5a9f 100644 --- a/Application/FileConverter/ConversionPreset/ConversionPreset.cs +++ b/Application/FileConverter/ConversionPreset/ConversionPreset.cs @@ -5,6 +5,7 @@ namespace FileConverter using System; using System.Collections.Generic; using System.ComponentModel; + using System.Globalization; using System.Linq; using System.Runtime.CompilerServices; using System.Xml.Serialization; @@ -378,7 +379,7 @@ namespace FileConverter return (T)System.Enum.Parse(type, settingsValue); } - return (T)System.Convert.ChangeType(settingsValue, type); + return (T)System.Convert.ChangeType(settingsValue, type, NumberFormatInfo.InvariantInfo); } public bool IsRelevantSetting(string settingsKey)