Merge pull request #198 from ivandrofly/patch-12

Fix possible bug!
This commit is contained in:
Nikolaj Olsson 2014-07-06 11:11:36 +02:00
commit 39899200d9

View File

@ -4149,7 +4149,7 @@ namespace Nikse.SubtitleEdit.Logic
int i2 = 0;
int i = 0;
int c = 0;
while (i < Math.Max(parts2.Length, parts2.Length) && i1 < parts1.Length && i2 < parts2.Length)
while (i < Math.Max(parts1.Length, parts2.Length) && i1 < parts1.Length && i2 < parts2.Length)
{
if (parts1[i1] == parts2[i2])
{