(svn r12355) [NewGRF_ports] -Fix: GUI was expanding old airport_gui widget when text was too long. NewGRF_ports
authorrichk
Mon, 10 Mar 2008 16:23:19 +0000
branchNewGRF_ports
changeset 6881 c3ade087d011
parent 6880 6d6f00b2baee
child 6882 f508b3bab2c5
(svn r12355) [NewGRF_ports] -Fix: GUI was expanding old airport_gui widget when text was too long.
src/airport_gui.cpp
--- 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 {