OSDN Git Service

WinGui:
authorsr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 4 Jul 2010 19:11:55 +0000 (19:11 +0000)
committersr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sun, 4 Jul 2010 19:11:55 +0000 (19:11 +0000)
- Fix: Subq option was not updating the widget correctly on the Advanced panel

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

win/C#/Controls/x264Panel.cs

index 53d420b..8d223f6 100644 (file)
@@ -237,7 +237,11 @@ namespace Handbrake.Controls
                                 check_noDCTDecimate.CheckState = CheckState.Checked;\r
                                 continue;\r
                             case "subq":\r
-                                drop_subpixelMotionEstimation.SelectedItem = optValue;\r
+                                int subqValue;\r
+                                if (int.TryParse(optValue, out subqValue))\r
+                                {\r
+                                    drop_subpixelMotionEstimation.SelectedIndex = subqValue + 1;\r
+                                }\r
                                 continue;\r
                             case "trellis":\r
                                 switch (optValue)\r