Bugfix #4536
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user