edje_cc now correctly handles lack of state int in STATE_SET action

@fix
This commit is contained in:
Mike Blumenkrantz 2014-03-20 19:19:50 -04:00
parent edf825fd07
commit 0f1ccdad09
1 changed files with 1 additions and 1 deletions

View File

@ -9309,7 +9309,7 @@ st_collections_group_programs_program_action(void)
if (ep->action == EDJE_ACTION_TYPE_STATE_SET)
{
ep->state = parse_str(1);
if (get_arg_count() == 1)
if (get_arg_count() == 2)
ep->value = 0.0;
else
ep->value = parse_float_range(2, 0.0, 1.0);