ItemListbox : getFirstSelectedItem and getNextSelectedItem always return the first selected item

Create issue
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 :

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