aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/IMLStream.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-08-07 02:40:26 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2016-08-07 02:40:26 +0200
commitd45cf90cb417222aef6e9a7e0de5c2d2f874ac91 (patch)
tree82d65899cbc72e94cb5f902aed8b853a15e8137a /src/IMLStream.cs
parentffed25a1ea22392f4fb832b15a91f7d2738ffdfa (diff)
* Label.cs:
no cursor drawn if not selectable * IMLStream.cs: invariant culture loading
Diffstat (limited to 'src/IMLStream.cs')
-rw-r--r--src/IMLStream.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/IMLStream.cs b/src/IMLStream.cs
index d4dc6496..542797a1 100644
--- a/src/IMLStream.cs
+++ b/src/IMLStream.cs
@@ -22,6 +22,7 @@ using System;
using System.IO;
using System.Reflection;
using System.Reflection.Emit;
+using System.Threading;
namespace Crow
{
@@ -42,8 +43,14 @@ namespace Crow
/// </summary>
public GraphicObject Instance {
get {
+ System.Globalization.CultureInfo savedCulture = Thread.CurrentThread.CurrentCulture;
+ Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;
+
Seek (0, SeekOrigin.Begin);
- return Interface.Load (this, this.RootType);
+ GraphicObject tmp = Interface.Load (this, this.RootType);
+
+ Thread.CurrentThread.CurrentCulture = savedCulture;
+ return tmp;
}
}
/// <summary>