Fixed bug regarding adjusting duration in seconds for last subtitle - thx mariner :)

This commit is contained in:
Nikolaj Olsson 2016-04-01 19:45:15 +02:00
parent 91afa5099c
commit 0689de05a4

View File

@ -342,7 +342,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;