OSDN Git Service

WinGui:
authorsr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Thu, 16 Aug 2007 17:02:51 +0000 (17:02 +0000)
committersr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Thu, 16 Aug 2007 17:02:51 +0000 (17:02 +0000)
- Fixed issue with manual cropping and empty text box leading to --crop :::: being passed to the cli.

git-svn-id: svn://localhost/HandBrake/trunk@820 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/C#/frmMain.cs

index e24bb22..fcafb5d 100644 (file)
@@ -1650,7 +1650,18 @@ namespace Handbrake
             else if (cropSetting == "No Crop")\r
                 cropOut = " --crop 0:0:0:0 ";\r
             else\r
+            {\r
+                if (text_top.Text == "")\r
+                    cropTop = "0";\r
+                if (text_bottom.Text == "")\r
+                    cropBottom = "0";\r
+                if (text_left.Text == "")\r
+                    cropLeft = "0";\r
+                if (text_right.Text == "")\r
+                    cropRight = "0";\r
+\r
                 cropOut = " --crop " + cropTop + ":" + cropBottom + ":" + cropLeft + ":" + cropRight;\r
+            }\r
 \r
             if (subtitles ==  "None")\r
                 subtitles = "";\r