(svn r24378) -Fix [FS#5218]: ReInit could crash for windows with NWidgetMatrix widgets.

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
frosch 12 years ago
parent 95b2f4ba95
commit 4843bad1ac

@ -1528,9 +1528,7 @@ void NWidgetMatrix::AssignSizePosition(SizingType sizing, uint x, uint y, uint g
/* When resizing, update the scrollbar's count. E.g. with a vertical
* scrollbar becoming wider or narrower means the amount of rows in
* the scrollbar becomes respectively smaller or higher. */
if (sizing == ST_RESIZE) {
this->SetCount(this->count);
}
this->SetCount(this->count);
}
void NWidgetMatrix::FillNestedArray(NWidgetBase **array, uint length)

Loading…
Cancel
Save