commit | 9169b2911c28ea2080c56885a2b0f8aa6e8f1f9f | [log] [tgz] |
---|---|---|
author | ocornut <omarcornut@gmail.com> | Thu Aug 14 17:01:42 2014 +0100 |
committer | ocornut <omarcornut@gmail.com> | Thu Aug 14 17:01:42 2014 +0100 |
tree | 95446efa51f02fac57b8f2b507307238329bcb7b | |
parent | a4b96445e879ab3671913da5fea105db31256f89 [diff] |
Fixed trailing \n reporting extra text height
diff --git a/imgui.cpp b/imgui.cpp index 0e0dc34..d24436c 100644 --- a/imgui.cpp +++ b/imgui.cpp
@@ -5079,7 +5079,7 @@ text_size.y += line_height; line_width = 0; } - if (const FntGlyph* glyph = FindGlyph((unsigned short)c)) + else if (const FntGlyph* glyph = FindGlyph((unsigned short)c)) { const float char_width = (glyph->XAdvance + Info->SpacingHoriz) * scale; //const float char_extend = (glyph->XOffset + glyph->Width * scale);