Fix another crash in assa tag helper - thx OmrSi :)

This commit is contained in:
niksedk 2021-06-20 15:55:13 +02:00
parent 90a8ec740b
commit bcb6941d3b

View File

@ -270,7 +270,7 @@ namespace Nikse.SubtitleEdit.Logic
tb.Text = tb.Text.Remove(start, endTagIndex - start + 1);
}
if (tb.Text[start] == '}')
if (tb.Text.Length > start && tb.Text[start] == '}')
{
start++;
}