From cd0ec2fa1303ec3c8cf178fc923fcea8ef8b6c4a Mon Sep 17 00:00:00 2001 From: acidx Date: Fri, 6 Jul 2012 19:38:35 +0000 Subject: [PATCH] edje: Unb0rk Embryo set_state() De Morgan is your friend. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@73426 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/edje_embryo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/edje_embryo.c b/src/lib/edje_embryo.c index c390d5e..ffcbc64 100644 --- a/src/lib/edje_embryo.c +++ b/src/lib/edje_embryo.c @@ -871,7 +871,8 @@ _edje_embryo_fn_set_state(Embryo_Program *ep, Embryo_Cell *params) double value = 0.0; Edje_Real_Part *rp; - if (!HASNPARAMS(2) || !HASNPARAMS(3)) return -1; + if (!(HASNPARAMS(2) || HASNPARAMS(3))) return -1; + ed = embryo_program_data_get(ep); GETSTR(state, params[2]); if ((!state)) return 0; -- 2.7.4