Fixed: FOptionMenuItem::GetIndent() did not handle localized strings

This commit is contained in:
Randy Heit 2015-04-22 22:57:15 -05:00
parent 0cbb3132e6
commit ca16d99445
1 changed files with 7 additions and 1 deletions

View File

@ -489,7 +489,13 @@ bool FOptionMenuItem::MouseEvent(int type, int x, int y)
int FOptionMenuItem::GetIndent()
{
return mCentered? 0 : SmallFont->StringWidth(mLabel);
if (mCentered)
{
return 0;
}
const char *label = mLabel;
if (*label == '$') label = GStrings(label+1);
return SmallFont->StringWidth(label);
}
void FOptionMenuItem::drawLabel(int indent, int y, EColorRange color, bool grayed)