From 4843bad1acdf2b45ee4e532e0035c6c8e46ce39c Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 7 Jul 2012 11:13:41 +0000 Subject: (svn r24378) -Fix [FS#5218]: ReInit could crash for windows with NWidgetMatrix widgets. --- src/widget.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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) -- cgit v1.2.3-54-g00ecf