Edje embryo: Fix invalid check for get_state_val (text str)

@fix
This commit is contained in:
Jean-Philippe Andre 2015-04-29 13:31:10 +09:00
parent 537f11278f
commit e88fe439f0
1 changed files with 2 additions and 2 deletions

View File

@ -2784,8 +2784,8 @@ _edje_embryo_fn_get_state_val(Embryo_Program *ep, Embryo_Cell *params)
{
Edje_Part_Description_Text *text;
if (rp->part->type == EDJE_PART_TYPE_TEXT
|| rp->part->type == EDJE_PART_TYPE_TEXTBLOCK)
if ((rp->part->type != EDJE_PART_TYPE_TEXT) &&
(rp->part->type != EDJE_PART_TYPE_TEXTBLOCK))
return 0;
CHKPARAM(4);