From 494c39a4c0f0f333dd61b573e54f328d31158044 Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 10 Jul 2009 19:33:14 +0000 Subject: WinGui: - Quick Fix to the QueryGenerator.cs - was misbehaving with anamorphic options and width/height git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2682 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Functions/QueryGenerator.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'win') diff --git a/win/C#/Functions/QueryGenerator.cs b/win/C#/Functions/QueryGenerator.cs index f0d19924b..bb80c1e74 100644 --- a/win/C#/Functions/QueryGenerator.cs +++ b/win/C#/Functions/QueryGenerator.cs @@ -121,7 +121,6 @@ namespace Handbrake.Functions // Use MaxWidth for built-in presets and width for user settings. if (mainWindow.PictureSettings.MaximumWidth == 0) { - if (mainWindow.PictureSettings.text_width.Text != "") if (mainWindow.PictureSettings.drp_anamorphic.SelectedIndex != 1) // Prevent usage for strict anamorphic query += " -w " + mainWindow.PictureSettings.text_width.Text; @@ -129,6 +128,7 @@ namespace Handbrake.Functions else { if (mainWindow.PictureSettings.text_width.Text != "") + if (mainWindow.PictureSettings.drp_anamorphic.SelectedIndex != 1) query += " -X " + mainWindow.PictureSettings.text_width.Text; } @@ -143,7 +143,8 @@ namespace Handbrake.Functions else { if (mainWindow.PictureSettings.text_height.Text != "") - query += " -Y " + mainWindow.PictureSettings.text_height.Text; + if (mainWindow.PictureSettings.drp_anamorphic.SelectedIndex == 0 || mainWindow.PictureSettings.drp_anamorphic.SelectedIndex == 3) + query += " -Y " + mainWindow.PictureSettings.text_height.Text; } string cropTop = mainWindow.PictureSettings.crop_top.Text; -- cgit v1.2.3