changeset 19475:09605b22c2a0 draft

(svn r24378) -Fix [FS#5218]: ReInit could crash for windows with NWidgetMatrix widgets.
author frosch <frosch@openttd.org>
date Sat, 07 Jul 2012 11:13:41 +0000
parents 1c0a88732250
children bb045047a24a
files src/widget.cpp
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -1528,9 +1528,7 @@
 	/* 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)