forked from enlightenment/efl
dotn segv if color vals beyond palette size in tg.
SVN revision: 72401
This commit is contained in:
parent
b374ba7d6f
commit
282783c949
|
@ -375,7 +375,8 @@ evas_object_textgrid_render(Evas_Object *obj, void *output, void *context, void
|
||||||
{
|
{
|
||||||
if (cells->bg_extended) palette = o->cur.palette_extended;
|
if (cells->bg_extended) palette = o->cur.palette_extended;
|
||||||
else palette = o->cur.palette_standard;
|
else palette = o->cur.palette_standard;
|
||||||
c = eina_array_data_get(palette, cells->bg);
|
if (cells->bg >= eina_array_count(palette)) c = NULL;
|
||||||
|
else c = eina_array_data_get(palette, cells->bg);
|
||||||
if ((c) && (c->a > 0))
|
if ((c) && (c->a > 0))
|
||||||
{
|
{
|
||||||
if (!run)
|
if (!run)
|
||||||
|
@ -412,7 +413,8 @@ evas_object_textgrid_render(Evas_Object *obj, void *output, void *context, void
|
||||||
{
|
{
|
||||||
if (cells->fg_extended) palette = o->cur.palette_extended;
|
if (cells->fg_extended) palette = o->cur.palette_extended;
|
||||||
else palette = o->cur.palette_standard;
|
else palette = o->cur.palette_standard;
|
||||||
c = eina_array_data_get(palette, cells->fg);
|
if (cells->fg >= eina_array_count(palette)) c = NULL;
|
||||||
|
else c = eina_array_data_get(palette, cells->fg);
|
||||||
if ((c) && (c->a > 0))
|
if ((c) && (c->a > 0))
|
||||||
{
|
{
|
||||||
evas_object_textgrid_row_text_append(row, obj, o, xp,
|
evas_object_textgrid_row_text_append(row, obj, o, xp,
|
||||||
|
|
Loading…
Reference in New Issue