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:49:08 +0100
commit3fabf9f95297b8a1ebd61089f4268b130037ede8 (patch)
tree939042d6b647b724f0a524a087880daee346528d
parent864c137471a45846764bc570067023a1d242d52c (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 6bfb5a14b1..867df8bc77 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,
662 else c = eina_array_data_get(palette, cells->fg); 662 else c = eina_array_data_get(palette, cells->fg);
663 if ((c) && (c->a > 0)) 663 if ((c) && (c->a > 0))
664 { 664 {
665 evas_object_textgrid_row_text_append(row, eo_obj, o, xp, 665 if (cells->codepoint > 0)
666 cells->codepoint, 666 evas_object_textgrid_row_text_append(row, eo_obj, o, xp,
667 c->r, c->g, c->b, c->a); 667 cells->codepoint,
668 c->r, c->g, c->b, c->a);
668 // XXX: underlines and strikethroughs dont get 669 // XXX: underlines and strikethroughs dont get
669 // merged into horizontal runs like bg rects above 670 // merged into horizontal runs like bg rects above
670 if (cells->underline) 671 if (cells->underline)