ItemListbox : getFirstSelectedItem and getNextSelectedItem always return the first selected item

Issue #899 resolved
Former user created an issue

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

Reproducibility: always

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

Comments (1)

  1. Log in to comment