Changeset - r16708:7dfa9a5dd1e4
[Not reviewed]
master
0 1 0
rubidium - 14 years ago 2010-12-10 20:05:20
rubidium@openttd.org
(svn r21451) -Fix (r21449): make sure the matrix's child widget's size is updated with the right widget index
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/widget.cpp
Show inline comments
 
@@ -1418,6 +1418,8 @@ void NWidgetMatrix::SetupSmallestSize(Wi
 
		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};
0 comments (0 inline, 0 general)