Fix crash in "Change profile" with no sub - thx OmrSi :)

Fix #3730
This commit is contained in:
niksedk 2019-08-27 07:03:59 +02:00
parent ca44195f3d
commit f35cce050b

View File

@ -25370,7 +25370,10 @@ namespace Nikse.SubtitleEdit.Forms
SubtitleListview1.SyntaxColorLine(_subtitle.Paragraphs, i, _subtitle.Paragraphs[i]);
}
SubtitleListview1.EndUpdate();
UpdateListViewTextInfo(labelTextLineLengths, labelSingleLine, labelTextLineTotal, labelCharactersPerSecond, _subtitle.Paragraphs[_subtitleListViewIndex], textBoxListViewText);
if (_subtitleListViewIndex >= 0)
{
UpdateListViewTextInfo(labelTextLineLengths, labelSingleLine, labelTextLineTotal, labelCharactersPerSecond, _subtitle.Paragraphs[_subtitleListViewIndex], textBoxListViewText);
}
ShowLineInformationListView();
ShowSourceLineNumber();
}