(svn r12355) [NewGRF_ports] -Fix: GUI was expanding old airport_gui widget when text was too long.
--- a/src/airport_gui.cpp Mon Mar 10 16:22:01 2008 +0000
+++ b/src/airport_gui.cpp Mon Mar 10 16:23:19 2008 +0000
@@ -256,9 +256,9 @@
int rad = _patches.modified_catchment ? fsmportspec->portFSM->catchment : 4;
if (_station_show_coverage) SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad);
int text_end = DrawStationCoverageAreaText(2, 206, SCT_ALL, rad) + 4;
- if (text_end > w->widget[6].bottom) {
+ if (text_end > w->widget[2].bottom) {
SetWindowDirty(w);
- ResizeWindowForWidget(w, 6, 0, text_end - w->widget[6].bottom);
+ ResizeWindowForWidget(w, 2, 0, text_end - w->widget[2].bottom);
SetWindowDirty(w);
}
} else {