summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-01-07 22:29:00 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-01-07 22:29:00 +0900
commitbecd02aaa662e7ba9571e1d497bd5d7bd72fe15a (patch)
tree58db39acf45d70e5910d5b51b151991f85295281 /src
parentd5c3ad97e5cb080817ac10ea6a07b08d1ac58fe6 (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
Diffstat (limited to 'src')
-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 0cad494f9a..443e736d14 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)