mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
null check.
This commit is contained in:
parent
6831125278
commit
7b4a6cac17
@ -114,8 +114,8 @@ namespace GARbro.GUI
|
||||
// for each item in the range [start, end]
|
||||
foreach (var item in Items.Cast<object>().Skip (start).Take (end-start+1))
|
||||
{
|
||||
var lvi = (ListViewItem)ItemContainerGenerator.ContainerFromItem (item);
|
||||
if (!lvi.IsSelected)
|
||||
var lvi = ItemContainerGenerator.ContainerFromItem (item) as ListViewItem;
|
||||
if (null != lvi && !lvi.IsSelected)
|
||||
lvi.IsSelected = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user