mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 20:52:44 +01:00
Fixed possible bug
This commit is contained in:
parent
2907c42f6b
commit
78b5fec65e
@ -291,7 +291,7 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
for (int i = 0; i < Paragraphs.Count - 1; i++)
|
||||
{
|
||||
Paragraph p = Paragraphs[i];
|
||||
Paragraph next = Paragraphs[i + 1];
|
||||
Paragraph next = GetParagraphOrDefault(i + 1);
|
||||
if (next != null && (p.EndFrame == next.StartFrame || p.EndFrame == next.StartFrame + 1))
|
||||
p.EndFrame = next.StartFrame - 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user