Author: mordante
Date: Fri May 1 19:25:32 2009
New Revision: 35386
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35386&view=rev
Log:
Disable an assert which gets triggered.
This assert shouldn't be triggered, but adding a workaround fixes the
issue. (The problem was discovered by YogiHH).
Modified:
trunk/src/gui/widgets/grid.cpp
Modified: trunk/src/gui/widgets/grid.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/grid.cpp?rev=35386&r1=35385&r2=35386&view=diff
==============================================================================
--- trunk/src/gui/widgets/grid.cpp (original)
+++ trunk/src/gui/widgets/grid.cpp Fri May 1 19:25:32 2009
@@ -331,7 +331,8 @@
{
tpoint size = get_best_size();
if(size.y <= static_cast<int>(maximum_height)) {
- assert(false);
+ /** @todo this point shouldn't be reached, find out why it
does. */
+ return;
}
const unsigned too_high = size.y - maximum_height;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits