From ff6dbb17e32f6fc19253282a7bdfbeb797d952b0 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Thu, 23 Jul 2015 20:07:36 +0900 Subject: [PATCH] Evas filters: Set state.next to nil when not in transition This is what the doc says and makes more sense. That was some kind of inverted logic. --- src/lib/evas/filters/evas_filter_parser.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/evas/filters/evas_filter_parser.c b/src/lib/evas/filters/evas_filter_parser.c index c278687..0ea62a1 100644 --- a/src/lib/evas/filters/evas_filter_parser.c +++ b/src/lib/evas/filters/evas_filter_parser.c @@ -2616,16 +2616,16 @@ _filter_program_state_set(Evas_Filter_Program *pgm) lua_setfield(L, -2, "name"); lua_setfield(L, -2, "cur"); } - lua_newtable(L); // "next" - { - if (pgm->state.next.name) + if (pgm->state.next.name) + { + lua_newtable(L); // "next" { SETFIELD("value", pgm->state.next.value); lua_pushstring(L, pgm->state.next.name); lua_setfield(L, -2, "name"); } - lua_setfield(L, -2, "next"); - } + lua_setfield(L, -2, "next"); + } lua_newtable(L); // "text" { SETCOLOR("outline", JOINC(text.outline)); -- 2.7.4