summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions/PresetLoader.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-06-15 14:56:23 +0000
committersr55 <[email protected]>2009-06-15 14:56:23 +0000
commit24780596a9e62e823d619792445a784094f904a2 (patch)
tree79909eb55db5bf00acd2466a32d7da343949d8f5 /win/C#/Functions/PresetLoader.cs
parentb023bb532c17e1284230172b660baa32b5750318 (diff)
WinGui:
- Picture Settings: Height of 0 allows for no -l to be passed to the CLI - Picture Settings / pre-sets now set 0 when no Height specified. Prevents the panel from using incorrect values when pre-sets are selected. - Simplified the Encode.cs set-up. Includes changes to QueueHandler git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2534 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions/PresetLoader.cs')
-rw-r--r--win/C#/Functions/PresetLoader.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/win/C#/Functions/PresetLoader.cs b/win/C#/Functions/PresetLoader.cs
index 15eb741a8..f6ea60e57 100644
--- a/win/C#/Functions/PresetLoader.cs
+++ b/win/C#/Functions/PresetLoader.cs
@@ -72,7 +72,7 @@ namespace Handbrake.Functions
if (presetQuery.CropLeft == "0" && presetQuery.CropRight == "0")
mainWindow.pictureSettings.check_customCrop.Checked = true;
- if (pictureSettings)
+ if (pictureSettings) // only Load picture settings if the perset requires it
{
if (presetQuery.CropTop != null)
{
@@ -110,6 +110,8 @@ namespace Handbrake.Functions
if (presetQuery.Height != 0)
mainWindow.pictureSettings.text_height.Value = presetQuery.Height;
+ else
+ mainWindow.pictureSettings.text_height.Value = 0;
// Max Width/Height override Width/Height
if (presetQuery.MaxWidth != 0)
@@ -125,6 +127,7 @@ namespace Handbrake.Functions
}
mainWindow.pictureSettings.setMax();
+
#endregion
#region Filters