diff options
author | sr55 <[email protected]> | 2009-06-11 18:27:10 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-06-11 18:27:10 +0000 |
commit | 3cbfd73aa1cce9a64c198457c457a8b1068835b5 (patch) | |
tree | aa12df22f34ff7023f019d6c398bb4eb01664359 /win | |
parent | b2b680f669a07d8dc9b682b6627d04d32a884fbd (diff) |
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
Diffstat (limited to 'win')
-rw-r--r-- | win/C#/Controls/PictureSettings.cs | 11 |
1 files changed, 7 insertions, 4 deletions
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;
|