summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorsr55 <[email protected]>2008-04-04 16:10:53 +0000
committersr55 <[email protected]>2008-04-04 16:10:53 +0000
commit8f7e4cf3d5a6a8fdd5557c1d5f54083ba942c9aa (patch)
tree0fc1ac3c3c8f8320b2c7f0e8703b65eb67deacdb /win
parent8747cd2227c1d7e295e7c6596b6ba32a35be595b (diff)
WinGui:
- Small Fix to the cropping dropdown code. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1376 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win')
-rw-r--r--win/C#/Functions/Common.cs25
1 files changed, 15 insertions, 10 deletions
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)