handle no partname in embryo api.

SVN revision: 56157
This commit is contained in:
Carsten Haitzler 2011-01-16 02:01:28 +00:00
parent 8c6932d5e9
commit 6e54a6d85c
1 changed files with 1 additions and 0 deletions

View File

@ -811,6 +811,7 @@ _edje_embryo_fn_get_part_id(Embryo_Program *ep, Embryo_Cell *params)
CHKPARAM(1);
ed = embryo_program_data_get(ep);
GETSTR(p, params[1]);
if (!p) return -1;
col = ed->collection;
if (!col) return -1;
for (part = col->parts; *part; part++)