Comments, reworded some !(xxx && xxx) complex expression to be a little less confusing.

This commit is contained in:
ocornut
2020-06-15 16:18:30 +02:00
parent 90c0c0c163
commit c658cba22b
2 changed files with 14 additions and 5 deletions

View File

@ -2906,7 +2906,7 @@ const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const c
}
// Allow wrapping after punctuation.
inside_word = !(c == '.' || c == ',' || c == ';' || c == '!' || c == '?' || c == '\"');
inside_word = (c != '.' && c != ',' && c != ';' && c != '!' && c != '?' && c != '\"');
}
// We ignore blank width at the end of the line (they can be skipped)