mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 19:52:48 +01:00
Fix issue with reading last line with zero duration - thx darnn :)
Fix #3167
This commit is contained in:
parent
59c87affa9
commit
cb1181c5fd
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user