Oops, this one was wrong.
authoronefang <onefang>
Mon, 7 Nov 2011 08:55:03 +0000 (08:55 +0000)
committeronefang <onefang@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 7 Nov 2011 08:55:03 +0000 (08:55 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@64860 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_lua2.c

index d273c72..8f53bf3 100644 (file)
@@ -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);