summaryrefslogtreecommitdiffstats
path: root/win/CS/ToolWindows
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-05-08 15:25:35 +0000
committersr55 <[email protected]>2011-05-08 15:25:35 +0000
commita352f237273b8c571e5da48a76fadeb36ed6d55d (patch)
tree8b82c43a15730e463bc4349b0355eb51bc31de09 /win/CS/ToolWindows
parentc2e751e3eb2ed19163c6c2a1318eab28bcbb921b (diff)
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
Diffstat (limited to 'win/CS/ToolWindows')
-rw-r--r--win/CS/ToolWindows/AdvancedAudio.cs10
1 files changed, 7 insertions, 3 deletions
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);
/// <summary>
- /// The Advanced Audio Panel
+ /// Initializes a new instance of the <see cref="AdvancedAudio"/> class.
/// </summary>
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;
}
}