If you press the end button and after that any character button in a focused empty ListBox it will crash.
This ist because of the following code in CGUIListBox.cpp (CGUIListBox::OnEvent) :
Code: Select all
if (Selected >= (s32)Items.size())
Selected = Items.size() - 1;
else
if (Selected<0)
Selected = 0;
Code: Select all
if(Selected<0){
Selected = 0;
}
if(Selected>=(s32)Items.size()){//no else here!
Selected = Items.size()-1;//becomes -1 now if no items
}