Fixed broken ribbon labels

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5985 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2010-09-14 00:22:42 +00:00
parent 960dd16596
commit fb8287fef0

View File

@ -113,11 +113,11 @@ void IconButtonWidget::add()
const bool word_wrap = (m_properties[PROP_WORD_WRAP] == "true");
// leave enough room for (at least) two lines of text
// leave enough room for two lines of text if word wrap is enabled, otherwise a single line
widget_size = rect<s32>(m_x - label_extra_size/2,
m_y + m_h,
m_x + m_w + label_extra_size/2,
m_y + m_h + (word_wrap ? GUIEngine::getFontHeight()*2 : 0));
m_y + m_h + (word_wrap ? GUIEngine::getFontHeight()*2 : GUIEngine::getFontHeight()));
m_label = GUIEngine::getGUIEnv()->addStaticText(message.c_str(), widget_size,
false, word_wrap, m_parent);