Mercurial > hg > openttd
changeset 13988:96eebb4de89d draft
(svn r18530) -Fix (r18304): Width property set on window instead of width.
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Fri, 18 Dec 2009 19:59:32 +0000 |
parents | ed20fc9e00cd |
children | c87fc54710c1 |
files | src/timetable_gui.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/timetable_gui.cpp +++ b/src/timetable_gui.cpp @@ -211,7 +211,7 @@ 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: