summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2009-12-18 19:59:32 +0000
committerpeter1138 <peter1138@openttd.org>2009-12-18 19:59:32 +0000
commit6f5425a062db70049c7be823004393c88ec714eb (patch)
tree902b0e634cc5dea9f5ef278df274eb0bc24b94a3 /src
parentb7c90a84adb83b960a59c2c028aa92687a30c3c5 (diff)
downloadopenttd-6f5425a062db70049c7be823004393c88ec714eb.tar.xz
(svn r18530) -Fix (r18304): Width property set on window instead of width.
Diffstat (limited to 'src')
-rw-r--r--src/timetable_gui.cpp2
1 files changed, 1 insertions, 1 deletions
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: