From e7dd53dffcde2d42e99036b7ec4bba3d01e018f9 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 16 Nov 2009 16:42:04 +0000 Subject: (svn r18119) -Codechange/Fix: always call OnResize so the matrices/scrollbars are initialised without the need for duplicating the OnResize code --- src/build_vehicle_gui.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/build_vehicle_gui.cpp') diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp index 25b78867d..44818d309 100644 --- a/src/build_vehicle_gui.cpp +++ b/src/build_vehicle_gui.cpp @@ -837,9 +837,6 @@ struct BuildVehicleWindow : Window { this->FinishInitNested(desc, tile == INVALID_TILE ? (int)type : tile); - /* Update the scrollbars/matrix 'definitions' */ - this->OnResize(); - this->eng_list.ForceRebuild(); this->GenerateBuildList(); // generate the list, since we need it in the next line /* Select the first engine in the list as default when opening the window */ -- cgit v1.2.3-54-g00ecf