Fix a wrong #ifdef to runtime check conversion

I didn't get this right the first time, non-Chinese text was looking
funny in dialog boxes
This commit is contained in:
Marco Antonio J. Costa
2025-01-09 21:37:19 -03:00
committed by majcosta
parent ff8376d625
commit ebd2e25e0f
+2 -1
View File
@@ -1733,7 +1733,8 @@ UINT16 IanWrappedStringHeight(UINT16 usPosX, UINT16 usPosY, UINT16 usWidth, UINT
// get the length (in pixels) of this word
usWordLengthPixels = WFStringPixLength(zWordString,uiLocalFont);
if (g_lang == i18n::Lang::zh && currentChar <= 255)
if (g_lang != i18n::Lang::zh ||
g_lang == i18n::Lang::zh && currentChar <= 255)
// add a space (in case we add another word to it)
zWordString[usDestCounter++] = 32;