fix khmer problem

This commit is contained in:
Johannes Kroll 2015-11-04 10:33:13 +01:00
parent 9088ae49e1
commit be98fb733d

View file

@ -133,10 +133,13 @@ static void shape_text(text_line & line,
// Check if all glyphs are valid.
for (unsigned i=0; i<num_glyphs; ++i)
{
if (glyphs[i].codepoint && !glyphinfos[i].glyph.codepoint)
if (glyphs[i].codepoint)
{
if (!glyphinfos[i].glyph.codepoint)
{
++valid_glyphs;
}
glyphinfos[i] = { face, glyphs[i], positions[i] };
++valid_glyphs;
}
}
if (valid_glyphs < num_glyphs && (pos < num_faces))