luaa: fix idx not used

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-07-29 17:47:15 +02:00
parent 299bc00286
commit df079b2a54
1 changed files with 5 additions and 5 deletions

10
luaa.h
View File

@ -221,12 +221,12 @@ luaA_getopt_padding(lua_State *L, int idx, padding_t *dpadding)
{
padding_t padding;
luaA_checktable(L, 2);
luaA_checktable(L, idx);
padding.right = luaA_getopt_number(L, 2, "right", dpadding->right);
padding.left = luaA_getopt_number(L, 2, "left", dpadding->left);
padding.top = luaA_getopt_number(L, 2, "top", dpadding->top);
padding.bottom = luaA_getopt_number(L, 2, "bottom", dpadding->bottom);
padding.right = luaA_getopt_number(L, idx, "right", dpadding->right);
padding.left = luaA_getopt_number(L, idx, "left", dpadding->left);
padding.top = luaA_getopt_number(L, idx, "top", dpadding->top);
padding.bottom = luaA_getopt_number(L, idx, "bottom", dpadding->bottom);
return padding;
}