[Commits] [wesnoth/wesnoth] 96534c: Work around crash/assertion caused by shortening f...

GitHub noreply at github.com
Sun Dec 20 00:07:33 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 96534c523dd945148135cd1d1090ad5c642694f3
      https://github.com/wesnoth/wesnoth/commit/96534c523dd945148135cd1d1090ad5c642694f3
  Author: Andreas Löf <andreas at alternating.net>
  Date:   2015-12-20 (Sun, 20 Dec 2015)

  Changed paths:
    M src/widgets/file_menu.cpp
    M src/widgets/menu.hpp

  Log Message:
  -----------
  Work around crash/assertion caused by shortening filenames in gui1

Theis introduces the get_max_height and get_max_width methods in gui1
menu elements. The get_max_width method is then used to check against
the magic number -1 which is used to specify that there is no max
width for the menu.
If there is a max width then the old way of doing
things will be invoked.





More information about the Commits mailing list