diff options
author | sr55 <[email protected]> | 2011-01-19 20:08:32 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-01-19 20:08:32 +0000 |
commit | 10aed84471d4e0bacd1adb6842f1b921fbb36b73 (patch) | |
tree | f92c2984fa15a21c220c2ffabcebcff0559c165c /win/C#/Controls/AudioPanel.cs | |
parent | a40e7e9f4ba8269c839ac32e87403f4d4143c455 (diff) |
WinGui:
- Set culture on drc string -> double conversion.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3757 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Controls/AudioPanel.cs')
-rw-r--r-- | win/C#/Controls/AudioPanel.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/win/C#/Controls/AudioPanel.cs b/win/C#/Controls/AudioPanel.cs index 7226ed1de..3f4808e6a 100644 --- a/win/C#/Controls/AudioPanel.cs +++ b/win/C#/Controls/AudioPanel.cs @@ -7,6 +7,7 @@ namespace Handbrake.Controls {
using System;
using System.Collections;
+ using System.Globalization;
using System.Linq;
using System.Windows.Forms;
using Functions;
@@ -22,6 +23,7 @@ namespace Handbrake.Controls /// </summary>
public partial class AudioPanel : UserControl
{
+ private static readonly CultureInfo Culture = new CultureInfo("en-US", false);
private const string AC3Passthru = "AC3 Passthru";
@@ -349,7 +351,7 @@ namespace Handbrake.Controls double.TryParse(audioList.SelectedRows[0].Cells[6].Value.ToString(), out drcValue);
if (drcValue != 0)
drcValue = ((drcValue * 10) + 1) - 10;
- int.TryParse(drcValue.ToString(), out drcCalculated);
+ int.TryParse(drcValue.ToString(Culture), out drcCalculated);
tb_drc.Value = drcCalculated;
lbl_drc.Text = audioList.SelectedRows[0].Cells[6].Value.ToString();
|