mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r18530) -Fix (r18304): Width property set on window instead of width.
This commit is contained in:
parent
b7c90a84ad
commit
6f5425a062
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue