evas textblock: add null check to avoid segfault

This commit is contained in:
WooHyun Jung 2018-04-05 10:55:44 +09:00
parent 6fa9dc37fe
commit 3bc65be44d
1 changed files with 8 additions and 5 deletions

View File

@ -6536,14 +6536,17 @@ _layout_visual(Ctxt *c)
}
}
c->par = (Evas_Object_Textblock_Paragraph *)
EINA_INLIST_GET(c->par)->next;
while (c->par)
if (c->par)
{
c->par->visible = 0;
_paragraph_clear(c->evas, c->o, c->evas_o, c->par);
c->par = (Evas_Object_Textblock_Paragraph *)
EINA_INLIST_GET(c->par)->next;
while (c->par)
{
c->par->visible = 0;
_paragraph_clear(c->evas, c->o, c->evas_o, c->par);
c->par = (Evas_Object_Textblock_Paragraph *)
EINA_INLIST_GET(c->par)->next;
}
}
}