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

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
rubidium 14 years ago
parent 84b4057342
commit c1efcb76ca

@ -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};

Loading…
Cancel
Save