changeset 13807:a743e8287d61 draft

(svn r18333) -Fix (r18127): Station view window did not resize properly when toggling between ratings and acceptance view.
author alberth <alberth@openttd.org>
date Sun, 29 Nov 2009 09:01:03 +0000
parents efb571d2550d
children b85d8303af38
files src/station_gui.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/station_gui.cpp
+++ b/src/station_gui.cpp
@@ -1110,7 +1110,7 @@
 					nwi->SetDataTip(STR_STATION_VIEW_RATINGS_BUTTON, STR_STATION_VIEW_RATINGS_TOOLTIP); // Switch to ratings view.
 					height_change = ALH_ACCEPTS - ALH_RATING;
 				}
-				this->ReInit(0, height_change);
+				this->ReInit(0, height_change * FONT_HEIGHT_NORMAL);
 				break;
 			}