Mercurial > hg > openttd
changeset 13074:c6408d5b9f99 draft
(svn r17574) -Fix (r17573): Insert NWID_SELECTION in nested_array when appropriate.
author | alberth <alberth@openttd.org> |
---|---|
date | Sat, 19 Sep 2009 12:52:49 +0000 |
parents | 013c3a75e449 |
children | 0a2c74e86245 |
files | src/widget.cpp |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/widget.cpp +++ b/src/widget.cpp @@ -1263,6 +1263,11 @@ void NWidgetStacked::SetupSmallestSize(Window *w, bool init_array) { + if (this->index >= 0 && init_array) { // Fill w->nested_array[] + assert(w->nested_array_size > (uint)this->index); + w->nested_array[this->index] = this; + } + /* First sweep, recurse down and compute minimal size and filling. */ this->smallest_x = 0; this->smallest_y = 0;