From a9d0a770b5816e0251672f2f9d6cc6b3e0abbb3e Mon Sep 17 00:00:00 2001 From: onefang Date: Mon, 7 Nov 2011 08:55:03 +0000 Subject: [PATCH] Oops, this one was wrong. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@64860 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/edje_lua2.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/lib/edje_lua2.c b/src/lib/edje_lua2.c index d273c72..8f53bf3 100644 --- a/src/lib/edje_lua2.c +++ b/src/lib/edje_lua2.c @@ -2478,15 +2478,11 @@ _elua_map_coord(lua_State *L) n = lua_gettop(L); if (2 > n) return 0; - if (_elua_4_int_get(L, 2, EINA_TRUE, "n", &n, "x", &x, "y", &y, "z", &z) > 0) + if (_elua_3_int_get(L, 2, EINA_TRUE, "x", &x, "y", &y, "z", &z) > 0) { - evas_map_point_coord_set(elm->map, n, x, y, z); - } - else - { - n = lua_tointeger(L, 2); - evas_map_point_coord_get(elm->map, n, &x, &y, &z); + evas_map_point_coord_set(elm->map, lua_tointeger(L, 2), x, y, z); } + evas_map_point_coord_get(elm->map, lua_tointeger(L, 2), &x, &y, &z); _elua_int_ret(L, "x", x); _elua_int_ret(L, "y", y); _elua_int_ret(L, "z", z); -- 2.7.4