From 3cbfd73aa1cce9a64c198457c457a8b1068835b5 Mon Sep 17 00:00:00 2001 From: sr55 Date: Thu, 11 Jun 2009 18:27:10 +0000 Subject: WinGui - Fix a culture issue in the new picture settings code. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2515 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Controls/PictureSettings.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'win/C#/Controls/PictureSettings.cs') diff --git a/win/C#/Controls/PictureSettings.cs b/win/C#/Controls/PictureSettings.cs index 6a1fbfc6d..54a80eefd 100644 --- a/win/C#/Controls/PictureSettings.cs +++ b/win/C#/Controls/PictureSettings.cs @@ -1,5 +1,6 @@ using System; using System.Drawing; +using System.Globalization; using System.Windows.Forms; using Handbrake.Parsing; @@ -10,6 +11,8 @@ namespace Handbrake.Controls public partial class PictureSettings : UserControl { + private static readonly CultureInfo Culture = new CultureInfo("en-US", false); + // Globals public int maxWidth, maxHeight; int widthVal, heightVal; @@ -596,12 +599,12 @@ namespace Handbrake.Controls { int aw = 0; int ah = 0; - if (selectedTitle.AspectRatio.ToString() == "1.78") + if (selectedTitle.AspectRatio.ToString(Culture) == "1.78") { aw = 16; ah = 9; } - else if (selectedTitle.AspectRatio.ToString() == "1.33") + else if (selectedTitle.AspectRatio.ToString(Culture) == "1.33") { aw = 4; ah = 3; @@ -638,12 +641,12 @@ namespace Handbrake.Controls { int aw = 0; int ah = 0; - if (selectedTitle.AspectRatio.ToString() == "1.78") + if (selectedTitle.AspectRatio.ToString(Culture) == "1.78") { aw = 16; ah = 9; } - else if (selectedTitle.AspectRatio.ToString() == "1.33") + else if (selectedTitle.AspectRatio.ToString(Culture) == "1.33") { aw = 4; ah = 3; -- cgit v1.2.3