Automatic migration. Original reporter: "Alain B"
getFirstSelectedItem and getNextSelectedItem both call findSelectedItem. However, findSelectedItem doesn't increment d_nextSelectionIndex, causing every call to getNextSelectedItem to return the first selected item.
For a suggested (and tested) fix, see : http://www.cegui.org.uk/phpBB2/viewtopic.php?f=3&t=6191
Steps to reproduce: Create an ItemListbox. Select at least one item in it. Try to loop through the selected items using the above mentionned methods. This should produce an infinite loop.
Additional information: The issue affects (at least) both 0.7.7 and the latest version on mercurial.
OS: Windows, OS build: Windows 7, Platform: Windows