OSDN Git Service

WinGui:
authorsr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 16 Oct 2009 21:07:17 +0000 (21:07 +0000)
committersr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 16 Oct 2009 21:07:17 +0000 (21:07 +0000)
- Fixed a small error when selecting the correct array index when checking which subtitle track is selected.

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

win/C#/Controls/Subtitles.cs

index f5fbb33..fedfdc9 100644 (file)
@@ -111,7 +111,7 @@ namespace Handbrake.Controls
                 SubtitleInfo track = SubList[lv_subList.SelectedIndices[0]];\r
 \r
                 int c = 0;\r
-                if (lv_subList.Items[lv_subList.SelectedIndices[0]].SubItems[1].Text.ToLower().Contains(".srt"))  // We have an SRT\r
+                if (lv_subList.Items[lv_subList.SelectedIndices[0]].SubItems[0].Text.ToLower().Contains(".srt"))  // We have an SRT\r
                 {\r
                     foreach (var item in drp_subtitleTracks.Items)\r
                     {\r