evas textgrid - fix drawing of codepoints that are 0

this fixes artifacts if you have cells with 0 codepoints and also have
underlines or strikethroughs in them.

@fix
This commit is contained in:
Carsten Haitzler 2015-01-07 22:29:00 +09:00
parent d5c3ad97e5
commit becd02aaa6
1 changed files with 4 additions and 3 deletions

View File

@ -658,9 +658,10 @@ evas_object_textgrid_render(Evas_Object *eo_obj,
else c = eina_array_data_get(palette, cells->fg);
if ((c) && (c->a > 0))
{
evas_object_textgrid_row_text_append(row, eo_obj, o, xp,
cells->codepoint,
c->r, c->g, c->b, c->a);
if (cells->codepoint > 0)
evas_object_textgrid_row_text_append(row, eo_obj, o, xp,
cells->codepoint,
c->r, c->g, c->b, c->a);
// XXX: underlines and strikethroughs dont get
// merged into horizontal runs like bg rects above
if (cells->underline)