Fix issue with reading last line with zero duration - thx darnn :)

Fix #3167
This commit is contained in:
Nikolaj Olsson 2018-11-10 11:29:04 +01:00
parent 59c87affa9
commit cb1181c5fd

View File

@ -97,8 +97,10 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
ReadLine(subtitle, line, next, nextNext);
}
if (_paragraph != null && _paragraph.EndTime.TotalMilliseconds > _paragraph.StartTime.TotalMilliseconds)
if (_paragraph != null && _paragraph.ToString() != new Paragraph().ToString())
{
subtitle.Paragraphs.Add(_paragraph);
}
if (doRenum)
subtitle.Renumber();