diff --git a/libse/Subtitle.cs b/libse/Subtitle.cs index d5203a34b..767994a15 100644 --- a/libse/Subtitle.cs +++ b/libse/Subtitle.cs @@ -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;