From a352f237273b8c571e5da48a76fadeb36ed6d55d Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 8 May 2011 15:25:35 +0000 Subject: WinGui: - Fix a Culture issue in the Query Generator for Audio Panels git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3974 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/ToolWindows/AdvancedAudio.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'win/CS/ToolWindows') diff --git a/win/CS/ToolWindows/AdvancedAudio.cs b/win/CS/ToolWindows/AdvancedAudio.cs index fba1f7cb6..6b4ebed61 100644 --- a/win/CS/ToolWindows/AdvancedAudio.cs +++ b/win/CS/ToolWindows/AdvancedAudio.cs @@ -20,7 +20,7 @@ namespace Handbrake.ToolWindows private static readonly CultureInfo Culture = new CultureInfo("en-US", false); /// - /// The Advanced Audio Panel + /// Initializes a new instance of the class. /// public AdvancedAudio() { @@ -71,9 +71,13 @@ namespace Handbrake.ToolWindows drcValue = ((track.DRC * 10) + 1) - 10; int.TryParse(drcValue.ToString(Culture), out drcCalculated); tb_drc.Value = drcCalculated; - lbl_drc.Text = track.DRC.ToString(); + lbl_drc.Text = track.DRC.ToString(Culture); tb_drc.Enabled = track.TrackDisplay.Contains("(AC3)"); + if (!tb_drc.Enabled) + { + Console.WriteLine("test"); + } } } @@ -140,7 +144,7 @@ namespace Handbrake.ToolWindows else value = ((tb_drc.Value - 1) / 10.0) + 1; - lbl_drc.Text = value.ToString(); + lbl_drc.Text = value.ToString(Culture); track.DRC = value; } } -- cgit v1.2.3