# HG changeset patch # User alberth # Date 2009-09-19 12:52:49 # Node ID 0863f05657d12051804c970cdfc4d6bf8221e1a8 # Parent e603e9a93b7084ab8dd5d57663b8223b4ae328c1 (svn r17574) -Fix (r17573): Insert NWID_SELECTION in nested_array when appropriate. diff --git a/src/widget.cpp b/src/widget.cpp --- a/src/widget.cpp +++ b/src/widget.cpp @@ -1263,6 +1263,11 @@ void NWidgetStacked::SetIndex(int index) 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;