paintButtons: fix alternative button text size

Origin commit data
------------------
Commit: e9725e393e
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2014-02-04 (Tue, 04 Feb 2014)
This commit is contained in:
Jacek Jendrzej
2014-02-04 19:24:41 +01:00
parent 8d223494f0
commit 2b8776368d

View File

@@ -139,7 +139,10 @@ int paintButtons( const int &x,
if (content[i].locale) {
buttontext[i] = g_Locale->getText(content[i].locale);
//text width
fwidth[i] = font->getRenderWidth(buttontext[i], true);
if (alt_buttontext != NULL && i == buttontext_id)
fwidth[i] = font->getRenderWidth(alt_buttontext, true); //...with an alternate buttontext
else
fwidth[i] = font->getRenderWidth(buttontext[i], true);
w_text += fwidth[i];
count_labels++;
} else {