diff options
author | sr55 <[email protected]> | 2008-09-09 17:31:44 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2008-09-09 17:31:44 +0000 |
commit | 69699d2343472ad6fd1af454abd213e71287cb25 (patch) | |
tree | b1027f858c818a538a8a3d158e59f889c2081e56 /win/C# | |
parent | 57dc995028ba55fb514d29855bf0e01f1903791b (diff) |
WinGui:
- Fix in CalculateDuration. Crash caused by end chapter dropdown menu not getting re-populated before calculate duration run. See:
http://forum.handbrake.fr/viewtopic.php?f=12&t=7050
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1683 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#')
-rw-r--r-- | win/C#/frmMain.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index e05ea9c1a..bd51c7da6 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -1417,6 +1417,9 @@ namespace Handbrake int position = start_chapter - 1;
+ if (end_chapter > selectedTitle.Chapters.Count)
+ end_chapter = selectedTitle.Chapters.Count;
+
while (position != end_chapter)
{
TimeSpan dur = selectedTitle.Chapters[position].Duration;
|