mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-26 05:02:36 +01:00
Hopefully fixed crash in 'Fix common errors' - thx XhmikosR :)
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@1045 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
aa13720843
commit
8b159c8d2a
@ -3909,14 +3909,17 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
if (_deleteIndices.Contains(i))
|
||||
index++;
|
||||
}
|
||||
if (index - 1 > 0)
|
||||
subtitleListView1.EnsureVisible(index - 1);
|
||||
if (index + 1 < subtitleListView1.Items.Count)
|
||||
subtitleListView1.EnsureVisible(index + 1);
|
||||
|
||||
subtitleListView1.SelectNone();
|
||||
subtitleListView1.Items[index].Selected = true;
|
||||
subtitleListView1.EnsureVisible(index);
|
||||
if (index >= 0 && index < subtitleListView1.Items.Count)
|
||||
{
|
||||
if (index - 1 > 0)
|
||||
subtitleListView1.EnsureVisible(index - 1);
|
||||
if (index + 1 < subtitleListView1.Items.Count)
|
||||
subtitleListView1.EnsureVisible(index + 1);
|
||||
subtitleListView1.SelectNone();
|
||||
subtitleListView1.Items[index].Selected = true;
|
||||
subtitleListView1.EnsureVisible(index);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user