Skip to content

Commit

Permalink
Fix a wrong #ifdef to runtime check conversion
Browse files Browse the repository at this point in the history
I didn't get this right the first time, non-Chinese text was looking
funny in dialog boxes
  • Loading branch information
majcosta committed Jan 10, 2025
1 parent ff8376d commit 0d50945
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Utils/WordWrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0d50945

Please sign in to comment.