|
|
@@ -40,8 +40,9 @@ namespace ContextMenuManager.Controls.Interfaces
|
|
|
MyListItem listItem = (MyListItem)item;
|
|
|
MyList list = (MyList)listItem.Parent;
|
|
|
int index = list.GetItemIndex(listItem);
|
|
|
+ index -= (index < list.Controls.Count) ? 0 : 1;
|
|
|
item.DeleteMe();
|
|
|
- list.HoveredItem = (MyListItem)list.Controls[index - 1];
|
|
|
+ list.HoveredItem = (MyListItem)list.Controls[index];
|
|
|
};
|
|
|
}
|
|
|
}
|