From 6003b9f21183c57f89cf7b0e3c315969b4faadd0 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 16 Mar 2010 20:15:38 +0000 Subject: [PATCH] (svn r19438) -Fix [FS#3700]: Custom group names are misaligned with default ones when using rtl languages (sbr) --- src/group_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/group_gui.cpp b/src/group_gui.cpp index dd8c71747c..3ce991bee9 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -400,7 +400,7 @@ public: /* draw the selected group in white, else we draw it in black */ SetDParam(0, g->index); - DrawString(r.left + WD_FRAMERECT_LEFT + 8, r.right - WD_FRAMERECT_RIGHT, y1, STR_GROUP_NAME, (this->group_sel == g->index) ? TC_WHITE : TC_BLACK); + DrawString(r.left + WD_FRAMERECT_LEFT + 8, r.right - WD_FRAMERECT_RIGHT - 8, y1, STR_GROUP_NAME, (this->group_sel == g->index) ? TC_WHITE : TC_BLACK); /* draw the number of vehicles of the group */ SetDParam(0, g->num_vehicle);