Fixed word-wrapping which would never wrap after a 1 character word. (thanks @sronsse)

This commit is contained in:
ocornut
2017-01-01 20:11:40 +01:00
parent db593220fc
commit 68df09cf47
2 changed files with 3 additions and 2 deletions

View File

@ -1851,6 +1851,7 @@ const char* ImFont::CalcWordWrapPositionA(float scale, const char* text, const c
{
line_width += blank_width;
blank_width = 0.0f;
word_end = s;
}
blank_width += char_width;
inside_word = false;