From 3f1f0e0db601b683901aee9e6ba2a763eabbdba2 Mon Sep 17 00:00:00 2001 From: sr55 Date: Thu, 16 Aug 2007 17:02:51 +0000 Subject: 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 --- win/C#/frmMain.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 = ""; -- cgit v1.2.3