[Commits] [wesnoth/wesnoth] 49ecde: GUI2/Listbox: prevent selection of invalid rows in...

GitHub noreply at github.com
Tue Nov 7 00:12:58 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 49ecde529958f32dda047384a93e1fdb97ae13b4
      https://github.com/wesnoth/wesnoth/commit/49ecde529958f32dda047384a93e1fdb97ae13b4
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-11-07 (Tue, 07 Nov 2017)

  Changed paths:
    M src/gui/widgets/listbox.cpp

  Log Message:
  -----------
  GUI2/Listbox: prevent selection of invalid rows in click callback (fixup 9902b07519c)

This fixes #2178. I'm not entirely sure why, but it's possible for the selected item index
to be invalid here. Added a check to head that off.





More information about the Commits mailing list