summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-12-08 17:18:30 +0000
committerfrosch <frosch@openttd.org>2012-12-08 17:18:30 +0000
commit18a5ba4ad7967c537854a3061df9e600c8f55bf7 (patch)
treee885519557b9605e27d30a519fe8d5f57ab4fc65 /src
parentdbcc8138d1c92f3b95c80c39ba172a4bfd763ac4 (diff)
downloadopenttd-18a5ba4ad7967c537854a3061df9e600c8f55bf7.tar.xz
(svn r24800) -Fix [FS#5327] (r21933): Glitch in timetable GUI. (sbr)
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 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);