[Commits] [wesnoth/wesnoth] 53bc8a: tgrid::request_reduce_*: remove misleading code

GitHub noreply at github.com
Tue Nov 8 21:00:19 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 53bc8a7f1d5e98f42d91ef72b846767356c73952
      https://github.com/wesnoth/wesnoth/commit/53bc8a7f1d5e98f42d91ef72b846767356c73952
  Author: Jyrki Vesterinen <sandgtx at gmail.com>
  Date:   2016-11-08 (Tue, 08 Nov 2016)

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

  Log Message:
  -----------
  tgrid::request_reduce_*: remove misleading code

These functions operate by calling twidget::request_reduce_* functions for
child widgets and not by changing values in column_width_ and row_height_.
Now when they no longer do the latter at all, and I added a comment to
clarify how the code works, hopefully understanding the code will be easier
for future developers.





More information about the Commits mailing list