mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-18 01:14:19 +00:00
Fixed word-wrapping which would never wrap after a 1 character word. (thanks @sronsse)
This commit is contained in:
parent
db593220fc
commit
68df09cf47
2 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue