jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=ff6dbb17e32f6fc19253282a7bdfbeb797d952b0

commit ff6dbb17e32f6fc19253282a7bdfbeb797d952b0
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Thu Jul 23 20:07:36 2015 +0900

    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));

-- 


Reply via email to