From 18a5ba4ad7967c537854a3061df9e600c8f55bf7 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 8 Dec 2012 17:18:30 +0000 Subject: (svn r24800) -Fix [FS#5327] (r21933): Glitch in timetable GUI. (sbr) --- src/timetable_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2