diff --git a/imgui.cpp b/imgui.cpp index feb3b599..c32deddb 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -7379,7 +7379,7 @@ void ImFont::BuildLookupTable() { Glyphs.resize(Glyphs.size() + 1); ImFont::Glyph& tab_glyph = Glyphs.back(); - tab_glyph = *space_glyph; + tab_glyph = *FindGlyph((unsigned short)' '); tab_glyph.Codepoint = '\t'; tab_glyph.XAdvance *= 4; IndexXAdvance[(size_t)tab_glyph.Codepoint] = (float)tab_glyph.XAdvance;