[Commits] [wesnoth/wesnoth] f59426: Fix an assertion failure in the GUI2 placement.

GitHub noreply at github.com
Mon Jun 9 08:38:13 UTC 2014


  Branch: refs/heads/1.12
  Home:   https://github.com/wesnoth/wesnoth
  Commit: f5942668cecbcfcd40d7c137dc0bee65749e7254
      https://github.com/wesnoth/wesnoth/commit/f5942668cecbcfcd40d7c137dc0bee65749e7254
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2014-06-09 (Mon, 09 Jun 2014)

  Changed paths:
    M changelog
    M src/gui/widgets/scrollbar_container.cpp

  Log Message:
  -----------
  Fix an assertion failure in the GUI2 placement.

If a vertical scrollbar is added to a widget its size is recalculated.
Unfortunalty the determination of the minimum width didn't take the
horizontal scrollbar in account. This lead to the container to be too
small for a widget with horizontal and vertical scrollbar causing the
placement to fail.

Fixes bug #22095, possibly #15615 and #21785.

There are still a few issues remaining, but it seems they only cause the
code to behave less efficient. The fix for this issue seems to be more
intrusive and will only be committed to master.





More information about the Commits mailing list