Author: mordante
Date: Sat May 30 10:22:15 2009
New Revision: 35936

URL: http://svn.gna.org/viewcvs/wesnoth?rev=35936&view=rev
Log:
Also add the grid to the dirty list.

This in order to make sure that if the grid is not visible, it's
children aren't redrawn.

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=35936&r1=35935&r2=35936&view=diff
==============================================================================
--- trunk/src/gui/widgets/grid.cpp (original)
+++ trunk/src/gui/widgets/grid.cpp Sat May 30 10:22:15 2009
@@ -535,6 +535,8 @@
                assert(child.widget());
 
                std::vector<twidget*> child_call_stack = call_stack;
+               // The grid is not drawn, but needs to be used to determine 
visibility.
+               child_call_stack.push_back(this);
 
                child.widget()->populate_dirty_list(caller, child_call_stack);
        }


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to