(svn r21451) -Fix (r21449): make sure the matrix's child widget's size is updated with the right widget index

This commit is contained in:
rubidium 2010-12-10 20:05:20 +00:00
parent 84b4057342
commit c1efcb76ca
1 changed files with 2 additions and 0 deletions

View File

@ -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<NWidgetCore *>(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};