simplify further

This commit is contained in:
artemp 2017-02-17 15:28:13 +01:00
parent fe7d1e2f53
commit 302e4c75dd

View file

@ -172,12 +172,7 @@ static void shape_text(text_line & line,
for (auto c : clusters) for (auto c : clusters)
{ {
auto itr = glyphinfos.find(c); auto itr = glyphinfos.find(c);
if (itr == glyphinfos.end()) if (itr == glyphinfos.end() || (!itr->second.empty() && itr->second.front().glyph.codepoint == 0))
{
all_set = false;
break;
}
if (!itr->second.empty() && itr->second.front().glyph.codepoint == 0)
{ {
all_set = false; all_set = false;
break; break;