From 6f5425a062db70049c7be823004393c88ec714eb Mon Sep 17 00:00:00 2001 From: peter1138 Date: Fri, 18 Dec 2009 19:59:32 +0000 Subject: (svn r18530) -Fix (r18304): Width property set on window instead of width. --- src/timetable_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timetable_gui.cpp b/src/timetable_gui.cpp index da4c8c519..8bf59bb99 100644 --- a/src/timetable_gui.cpp +++ b/src/timetable_gui.cpp @@ -211,7 +211,7 @@ struct TimetableWindow : Window { SetDParam(0, MAX_YEAR * DAYS_IN_YEAR); this->deparr_time_width = GetStringBoundingBox(STR_JUST_DATE_TINY).width; this->deparr_abbr_width = max(GetStringBoundingBox(STR_TIMETABLE_ARRIVAL_ABBREVIATION).width, GetStringBoundingBox(STR_TIMETABLE_DEPARTURE_ABBREVIATION).width); - this->width = WD_FRAMERECT_LEFT + this->deparr_abbr_width + 10 + this->deparr_time_width + WD_FRAMERECT_RIGHT; + size->width = WD_FRAMERECT_LEFT + this->deparr_abbr_width + 10 + this->deparr_time_width + WD_FRAMERECT_RIGHT; /* fall through */ case TTV_ARRIVAL_DEPARTURE_SELECTION: case TTV_TIMETABLE_PANEL: -- cgit v1.2.3-70-g09d2