(run_flt): Fix culculation of g->g.to.
#endif /* HAVE_FRIBIDI */
g->bidi_level = levels[i];
for (seglen = 1, g++;
- i + seglen < len && (glyphs[i].g.from == glyphs[i + seglen].g.from
- || glyphs[i + seglen].g.xadv == 0);
+ i + seglen < len && glyphs[i].g.from == glyphs[i + seglen].g.from;
seglen++, g++)
{
g->bidi_level = levels[i];
MGlyph *g = MGLYPH (i);
g->g.from += from_pos - from;
- g->g.to += from_pos + 1;
+ g->g.to += from_pos - from + 1;
g->g.xadv >>= 6;
g->g.yadv >>= 6;
g->g.ascent >>= 6;