summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
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)