From: sr55 Date: Fri, 4 Apr 2008 16:10:53 +0000 (+0000) Subject: WinGui: X-Git-Tag: 0.9.3~568 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f7e4cf3d5a6a8fdd5557c1d5f54083ba942c9aa;p=handbrake WinGui: - Small Fix to the cropping dropdown code. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1376 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/win/C#/Functions/Common.cs b/win/C#/Functions/Common.cs index c911b836e..172dad5fe 100644 --- a/win/C#/Functions/Common.cs +++ b/win/C#/Functions/Common.cs @@ -477,16 +477,21 @@ namespace Handbrake.Functions cropOut = " --crop 0:0:0:0 "; else { - if (mainWindow.text_top.Text == "") - cropTop = "0"; - if (mainWindow.text_bottom.Text == "") - cropBottom = "0"; - if (mainWindow.text_left.Text == "") - cropLeft = "0"; - if (mainWindow.text_right.Text == "") - cropRight = "0"; - - cropOut = " --crop " + cropTop + ":" + cropBottom + ":" + cropLeft + ":" + cropRight; + if ((mainWindow.text_top.Text == "") && (mainWindow.text_bottom.Text == "") && (mainWindow.text_left.Text == "") && (mainWindow.text_right.Text == "")) + cropOut = ""; + else + { + if (mainWindow.text_top.Text == "") + cropTop = "0"; + if (mainWindow.text_bottom.Text == "") + cropBottom = "0"; + if (mainWindow.text_left.Text == "") + cropLeft = "0"; + if (mainWindow.text_right.Text == "") + cropRight = "0"; + + cropOut = " --crop " + cropTop + ":" + cropBottom + ":" + cropLeft + ":" + cropRight; + } } switch (deInterlace_Option)