(svn r24800) -Fix [FS#5327] (r21933): Glitch in timetable GUI. (sbr)

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
frosch 12 years ago
parent dbcc8138d1
commit 18a5ba4ad7

@ -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);

Loading…
Cancel
Save