summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions/QueryGenerator.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-06-27 13:43:55 +0000
committersr55 <[email protected]>2009-06-27 13:43:55 +0000
commit55e1c50521af6d6be32d3a3477ee79b074c6853b (patch)
tree8705a8c82ba028e2d08c2bb31bb52dc45d0a8fcb /win/C#/Functions/QueryGenerator.cs
parentedc5c3c50bbaf09eb2511f217a1228d901d54b55 (diff)
WinGui:
- Fix a few culture issues with my last checkin. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2634 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/QueryGenerator.cs')
-rw-r--r--win/C#/Functions/QueryGenerator.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/win/C#/Functions/QueryGenerator.cs b/win/C#/Functions/QueryGenerator.cs
index a9a923a47..da44e6076 100644
--- a/win/C#/Functions/QueryGenerator.cs
+++ b/win/C#/Functions/QueryGenerator.cs
@@ -222,7 +222,9 @@ namespace Handbrake.Functions
query += " -q " + value.ToString(new CultureInfo("en-US"));
break;
case "H.264 (x264)":
- double divided = Properties.Settings.Default.x264cqstep;
+ double divided;
+ CultureInfo culture = CultureInfo.CreateSpecificCulture("en-US");
+ double.TryParse(Properties.Settings.Default.x264cqstep.ToString(culture), out divided);
value = 51 - mainWindow.slider_videoQuality.Value * divided;
value = Math.Round(value, 2);
query += " -q " + value.ToString(new CultureInfo("en-US"));