use else if

This commit is contained in:
artemp 2017-02-20 12:12:22 +01:00
parent 86e5f9305b
commit d9c81d46fd

View file

@ -157,7 +157,7 @@ static void shape_text(text_line & line,
{
c.push_back({face, glyphs[i], positions[i]});
}
if (c.front().glyph.codepoint == 0)
else if (c.front().glyph.codepoint == 0)
{
c.front() = { face, glyphs[i], positions[i] };
}