Fix crash in compare

This commit is contained in:
niksedk 2022-10-28 20:53:47 +02:00
parent 19909f0455
commit 1f00db16b2

View File

@ -744,7 +744,7 @@ namespace Nikse.SubtitleEdit.Forms
} }
// from start // from start
var minLength = Math.Min(richTextBox1.Text.Length, richTextBox2.Text.Length); var minLength = Math.Min(richTextBox1.Text.RemoveChar('\r').Length, richTextBox2.Text.RemoveChar('\r').Length);
var startCharactersOk = 0; var startCharactersOk = 0;
for (var i = 0; i < minLength; i++) for (var i = 0; i < minLength; i++)
{ {