Fixed: Issue where the scale was not applied correctly for image conversions depending on the application current language

This commit is contained in:
Tichau authored and Adrien Allard committed 2017-04-29 16:33:22 +02:00
1 parent 409d726d35
commit 4ee60445f0
1 file changed
+2 -1
@@ -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)