FTF_GetStringWidth() was calling for translations, whilst translation was
not set even, causing crashes in strings.
Probably this was instable for many cases using Internation Font...
This commit is contained in:
2006-07-02 13:08:27 +00:00
parent 3c1956f5cd
commit c6af151b00

View File

@@ -131,7 +131,7 @@ float BIF_GetStringWidth(BMF_Font* font, char *str, int translate)
#ifdef INTERNATIONAL
if(G.ui_international == TRUE)
if(U.transopts & USER_TR_BUTTONS)
if(translate && (U.transopts & USER_TR_BUTTONS))
rt= FTF_GetStringWidth(str, FTF_USE_GETTEXT | FTF_INPUT_UTF8);
else
rt= FTF_GetStringWidth(str, FTF_NO_TRANSCONV | FTF_INPUT_UTF8);