diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-07-30 12:42:25 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-07-30 12:42:25 +0200 |
| commit | 6c6fb760bfb6a956a3413abfb56571a11113acd3 (patch) | |
| tree | 63bfcb046c0eedbacc6412ed6c03595db3acc557 /src/Interface.cs | |
| parent | dca4d91d401ba718eccb83d6be42a12f55919838 (diff) | |
replace ';' separator between members by ',' and set '.' as decimal mark in files
Diffstat (limited to 'src/Interface.cs')
| -rw-r--r-- | src/Interface.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Interface.cs b/src/Interface.cs index d8f66443..2636b60a 100644 --- a/src/Interface.cs +++ b/src/Interface.cs @@ -204,6 +204,9 @@ namespace Crow } public static GraphicObject Load (string path, object hostClass = null) { + System.Globalization.CultureInfo savedCulture = Thread.CurrentThread.CurrentCulture; + Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture; + Interface.XmlLoaderCount ++; CurrentGOMLPath = path; GraphicObject tmp = null; @@ -211,6 +214,9 @@ namespace Crow tmp = Load(stream, GetTopContainerOfGOMLStream(stream), hostClass); } Interface.XmlLoaderCount --; + + Thread.CurrentThread.CurrentCulture = savedCulture; + return tmp; } public static GraphicObject Load (Stream stream, Type type, object hostClass = null) @@ -264,12 +270,17 @@ namespace Crow public Dictionary<string, Dictionary<string, string>> Styling; public void LoadStyling() { + System.Globalization.CultureInfo savedCulture = Thread.CurrentThread.CurrentCulture; + Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture; + Styling = new Dictionary<string, Dictionary<string, string>> (); //fetch styling info in this order, if member styling is alreadey referenced in previous //assembly, it's ignored loadStylingFromAssembly (Assembly.GetEntryAssembly ()); loadStylingFromAssembly (Assembly.GetExecutingAssembly ()); + + Thread.CurrentThread.CurrentCulture = savedCulture; } void loadStylingFromAssembly (Assembly assembly) { |