diff options
author | frosch <frosch@openttd.org> | 2012-07-07 11:13:41 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-07-07 11:13:41 +0000 |
commit | 4843bad1acdf2b45ee4e532e0035c6c8e46ce39c (patch) | |
tree | 1a9e020c930967bf633c325ee812ec7d49f3df38 | |
parent | 95b2f4ba9517dcdff457cf6548316b85eba38226 (diff) | |
download | openttd-4843bad1acdf2b45ee4e532e0035c6c8e46ce39c.tar.xz |
(svn r24378) -Fix [FS#5218]: ReInit could crash for windows with NWidgetMatrix widgets.
-rw-r--r-- | src/widget.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/widget.cpp b/src/widget.cpp index e18e2eed2..d7c9e1f16 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -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) |