summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions/PresetLoader.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/C#/Functions/PresetLoader.cs')
-rw-r--r--win/C#/Functions/PresetLoader.cs7
1 files changed, 1 insertions, 6 deletions
diff --git a/win/C#/Functions/PresetLoader.cs b/win/C#/Functions/PresetLoader.cs
index 6730b8e49..82d96e660 100644
--- a/win/C#/Functions/PresetLoader.cs
+++ b/win/C#/Functions/PresetLoader.cs
@@ -159,8 +159,6 @@ namespace Handbrake.Functions
if (presetQuery.VideoEncoder == "H.264 (x264)")
{
int value;
- System.Globalization.CultureInfo culture = System.Globalization.CultureInfo.CreateSpecificCulture("en-US");
-
double x264step = Properties.Settings.Default.x264cqstep;
double presetValue = presetQuery.VideoQuality;
@@ -178,10 +176,7 @@ namespace Handbrake.Functions
double val = Math.Round(calculated, 0);
int.TryParse(val.ToString(), out value);
}
-
- int safevalue;
- int.TryParse(value.ToString(culture), out safevalue);
- mainWindow.slider_videoQuality.Value = safevalue;
+ mainWindow.slider_videoQuality.Value = value;
}
else
{