diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2015-01-07 22:29:00 +0900 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-01-07 16:49:33 +0100 |
commit | 77bc93e37dd482fcbec62472054b17638d3952ae (patch) | |
tree | 2c900774eb34b114f5d268443b712741029ccc5c | |
parent | 7e6a10b64b679f9cb184a192d5402a9676d0d8a4 (diff) | |
download | efl-77bc93e37dd482fcbec62472054b17638d3952ae.tar.gz |
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
-rw-r--r-- | src/lib/evas/canvas/evas_object_textgrid.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/evas/canvas/evas_object_textgrid.c b/src/lib/evas/canvas/evas_object_textgrid.c index a54af9ad72..b20c6e7a52 100644 --- a/src/lib/evas/canvas/evas_object_textgrid.c +++ b/src/lib/evas/canvas/evas_object_textgrid.c @@ -662,9 +662,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) |