From c1efcb76cace2ef00d14f78613e991ea4009fa0d Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 10 Dec 2010 20:05:20 +0000 Subject: (svn r21451) -Fix (r21449): make sure the matrix's child widget's size is updated with the right widget index --- src/widget.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/widget.cpp') diff --git a/src/widget.cpp b/src/widget.cpp index 45825db8f..d1e9bea85 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -1418,6 +1418,8 @@ void NWidgetMatrix::SetupSmallestSize(Window *w, bool init_array) w->nested_array[this->index] = this; } + /* Reset the widget number. */ + SB(dynamic_cast(this->head)->index, 16, 16, 0); this->head->SetupSmallestSize(w, init_array); Dimension padding = {this->pip_pre + this->pip_post, this->pip_pre + this->pip_post}; -- cgit v1.2.3-54-g00ecf