forked from enlightenment/efl
Edje: Edje_Text: Don't segfault on _edje_text_part_on_del if there is
not 'part' Don't ask me how I found this one, but it happened :/ so trap for valid part before trying to use it. SVN revision: 58516
This commit is contained in:
parent
6b3e820f35
commit
7c682a3ee2
|
@ -60,6 +60,7 @@ _edje_text_part_on_del(Edje *ed, Edje_Part *pt)
|
||||||
Edje_Part_Description_Text *desc;
|
Edje_Part_Description_Text *desc;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
|
if (!pt) return;
|
||||||
if (pt->type != EDJE_PART_TYPE_TEXT
|
if (pt->type != EDJE_PART_TYPE_TEXT
|
||||||
&& pt->type != EDJE_PART_TYPE_TEXTBLOCK)
|
&& pt->type != EDJE_PART_TYPE_TEXTBLOCK)
|
||||||
return ;
|
return ;
|
||||||
|
|
Loading…
Reference in New Issue