From 55c0163332420d5919dd9a8ddb312c2da6aae70e Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 30 Jul 2009 17:38:50 +0200 Subject: [PATCH] textbox: fix getopt_padding call Bug introduced because of the previous fix. Signed-off-by: Julien Danjou --- widgets/textbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/textbox.c b/widgets/textbox.c index 69884e3d7..a734a2f42 100644 --- a/widgets/textbox.c +++ b/widgets/textbox.c @@ -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); }