mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Fix for last end time for RTF2 format - th OmrSi :)
This commit is contained in:
parent
e9d28eb079
commit
e1cdd64810
@ -100,7 +100,7 @@ TimeCode Format: " + Configuration.Settings.General.CurrentFrameRate + @" frames
|
||||
subtitle.Paragraphs.Add(p);
|
||||
}
|
||||
|
||||
if (subtitle.Paragraphs.Count > 0)
|
||||
if (subtitle.Paragraphs.Count > 0 && subtitle.Paragraphs[subtitle.Paragraphs.Count - 1].Duration.TotalMilliseconds < 0.01)
|
||||
{
|
||||
p = subtitle.Paragraphs[subtitle.Paragraphs.Count - 1];
|
||||
p.EndTime.TotalMilliseconds = p.StartTime.TotalMilliseconds + Utilities.GetOptimalDisplayMilliseconds(p.Text);
|
||||
|
Loading…
Reference in New Issue
Block a user