Adjust duration fixed for last subtitle - thx mariner :)

This commit is contained in:
Nikolaj Olsson 2016-04-02 06:20:50 +02:00
parent 0689de05a4
commit 77552eff7e
2 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@
* Fixed bug regarding double line italic in format "iTunes Timed Text" - thx Ajax
* Set video position after "Reopen" - thx vmb
* Fix for border size in vobsub export via cmd line - thx S_E_New
* Adjust duration fixed for last subtitle - thx mariner
* + Many minor fixes from ivandrofly and xylographe

View File

@ -323,7 +323,7 @@ namespace Nikse.SubtitleEdit.Core
{
if (selectedIndexes == null || selectedIndexes.Contains(i))
{
double nextStartMilliseconds = _paragraphs[_paragraphs.Count - 1].EndTime.TotalMilliseconds + TimeCode.BaseUnit;
double nextStartMilliseconds = double.MaxValue;
if (i + 1 < _paragraphs.Count)
nextStartMilliseconds = _paragraphs[i + 1].StartTime.TotalMilliseconds;