mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
Fix crash in compare
This commit is contained in:
parent
19909f0455
commit
1f00db16b2
@ -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++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user