Skip to content

Commit

Permalink
Lets try to avoid reintroducing the Comma Period bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Knuxfan24 committed Nov 16, 2021
1 parent b000e49 commit a29e2db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MarathonRandomiser/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Threading.Tasks;
using System.Windows;
Expand Down Expand Up @@ -36,6 +37,9 @@ public MainWindow()
GenerateDirectories();
SetDefaults();

// Force culture info 'en-GB' to prevent errors with values altered by language-specific differences.
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.DefaultThreadCurrentUICulture = new CultureInfo("en-GB");

// If this is a debug build, set the seed to WPF Test for the sake of consistent testing.
// If not, hide the Debug Tab, Release Builds don't need it.
#if DEBUG
Expand Down

0 comments on commit a29e2db

Please sign in to comment.