textbox: fix getopt_padding call

Bug introduced because of the previous fix.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-07-30 17:38:50 +02:00
parent 2836c98ee5
commit 55c0163332

View file

@ -150,7 +150,7 @@ luaA_textbox_margin(lua_State *L)
if(lua_gettop(L) == 2)
{
d->margin = luaA_getopt_padding(L, 3, &d->margin);
d->margin = luaA_getopt_padding(L, 2, &d->margin);
widget_invalidate_bywidget(widget);
}