summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-01-07 22:29:00 +0900
committerCedric BAIL <cedric@osg.samsung.com>2015-01-07 16:47:52 +0100
commit472d5914ff71b8b2f55731bb3103b6a86d123237 (patch)
treec81a8045da432f4e5efa5702513ade0e286093ab
parent1b862c14f134480c5090cec2033c53c4d969411d (diff)
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.c7
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 e2742011bb..69de52598d 100644
--- a/src/lib/evas/canvas/evas_object_textgrid.c
+++ b/src/lib/evas/canvas/evas_object_textgrid.c
@@ -658,9 +658,10 @@ evas_object_textgrid_render(Evas_Object *eo_obj,
658 else c = eina_array_data_get(palette, cells->fg); 658 else c = eina_array_data_get(palette, cells->fg);
659 if ((c) && (c->a > 0)) 659 if ((c) && (c->a > 0))
660 { 660 {
661 evas_object_textgrid_row_text_append(row, eo_obj, o, xp, 661 if (cells->codepoint > 0)
662 cells->codepoint, 662 evas_object_textgrid_row_text_append(row, eo_obj, o, xp,
663 c->r, c->g, c->b, c->a); 663 cells->codepoint,
664 c->r, c->g, c->b, c->a);
664 // XXX: underlines and strikethroughs dont get 665 // XXX: underlines and strikethroughs dont get
665 // merged into horizontal runs like bg rects above 666 // merged into horizontal runs like bg rects above
666 if (cells->underline) 667 if (cells->underline)