mirror of https://github.com/OpenTTD/OpenTTD
(svn r24378) -Fix [FS#5218]: ReInit could crash for windows with NWidgetMatrix widgets.
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);
|
||||
}
|
||||
}
|
||||
|
||||
void NWidgetMatrix::FillNestedArray(NWidgetBase **array, uint length)
|
||||
|
|
Loading…
Reference in New Issue