mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-28 06:52:35 +01:00
[internal] - use built-in max finder
This commit is contained in:
parent
767fd4eb48
commit
59cf9a4e08
@ -224,9 +224,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
int index = 0;
|
||||
Paragraph p1 = sub1.GetParagraphOrDefault(index);
|
||||
Paragraph p2 = sub2.GetParagraphOrDefault(index);
|
||||
int max = sub1.Paragraphs.Count;
|
||||
if (max < sub2.Paragraphs.Count)
|
||||
max = sub2.Paragraphs.Count;
|
||||
int max = Math.Max(sub1.Paragraphs.Count, sub2.Paragraphs.Count);
|
||||
while (index < max)
|
||||
{
|
||||
if (p1 != null && p2 != null)
|
||||
|
Loading…
Reference in New Issue
Block a user