Fix waveform multiple select error - thx darbor87 :)

Fix #5304
This commit is contained in:
niksedk 2021-09-01 17:57:19 +02:00
parent 842d0967ee
commit 3423de5dc6

View File

@ -1002,9 +1002,12 @@ namespace Nikse.SubtitleEdit.Forms
SubtitleListview1.SelectNone();
var end = Math.Max(start, idx);
start = Math.Min(start, idx);
for (int i = start; i <= end; i++)
if (start >= 0)
{
SubtitleListview1.Items[i].Selected = true;
for (int i = start; i <= end; i++)
{
SubtitleListview1.Items[i].Selected = true;
}
}
}