summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2007-08-16 17:02:51 +0000
committersr55 <[email protected]>2007-08-16 17:02:51 +0000
commit3f1f0e0db601b683901aee9e6ba2a763eabbdba2 (patch)
tree1c1f0d05219f28426858ddc1a9e56a42d4b9ebce /win/C#/frmMain.cs
parenta5e9ce928c9eda5fc883957c15ff3648cdab21c1 (diff)
WinGui:
- Fixed issue with manual cropping and empty text box leading to --crop :::: being passed to the cli. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@820 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r--win/C#/frmMain.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs
index e24bb223b..fcafb5dcf 100644
--- a/win/C#/frmMain.cs
+++ b/win/C#/frmMain.cs
@@ -1650,7 +1650,18 @@ namespace Handbrake
else if (cropSetting == "No Crop")
cropOut = " --crop 0:0:0:0 ";
else
+ {
+ if (text_top.Text == "")
+ cropTop = "0";
+ if (text_bottom.Text == "")
+ cropBottom = "0";
+ if (text_left.Text == "")
+ cropLeft = "0";
+ if (text_right.Text == "")
+ cropRight = "0";
+
cropOut = " --crop " + cropTop + ":" + cropBottom + ":" + cropLeft + ":" + cropRight;
+ }
if (subtitles == "None")
subtitles = "";