diff options
author | frosch <frosch@openttd.org> | 2012-12-08 17:18:30 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-12-08 17:18:30 +0000 |
commit | 18a5ba4ad7967c537854a3061df9e600c8f55bf7 (patch) | |
tree | e885519557b9605e27d30a519fe8d5f57ab4fc65 | |
parent | dbcc8138d1c92f3b95c80c39ba172a4bfd763ac4 (diff) | |
download | openttd-18a5ba4ad7967c537854a3061df9e600c8f55bf7.tar.xz |
(svn r24800) -Fix [FS#5327] (r21933): Glitch in timetable GUI. (sbr)
-rw-r--r-- | src/timetable_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timetable_gui.cpp b/src/timetable_gui.cpp index de1352589..272682eb1 100644 --- a/src/timetable_gui.cpp +++ b/src/timetable_gui.cpp @@ -369,7 +369,7 @@ struct TimetableWindow : Window { bool rtl = _current_text_dir == TD_RTL; SetDParam(0, 99); - int index_column_width = GetStringBoundingBox(STR_ORDER_INDEX).width + GetSpriteSize(rtl ? SPR_ARROW_RIGHT : SPR_ARROW_LEFT).width + 3; + int index_column_width = GetStringBoundingBox(STR_ORDER_INDEX).width + 2 * GetSpriteSize(rtl ? SPR_ARROW_RIGHT : SPR_ARROW_LEFT).width + 3; int middle = rtl ? r.right - WD_FRAMERECT_RIGHT - index_column_width : r.left + WD_FRAMERECT_LEFT + index_column_width; const Order *order = v->GetOrder(order_id); |