From: sr55 Date: Fri, 4 Apr 2008 16:10:53 +0000 (+0000) Subject: WinGui: X-Git-Url: http://git.osdn.jp/view?a=commitdiff_plain;h=a15b1b446ff3db424ee8e0d5012c5dcc5f20e7e1;p=handbrake-jp%2Fhandbrake-jp-git.git WinGui: - Small Fix to the cropping dropdown code. git-svn-id: svn://localhost/HandBrake/trunk@1376 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/win/C#/Functions/Common.cs b/win/C#/Functions/Common.cs index c911b836..172dad5f 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)