Commit 83ab5425 authored by Jean-Philippe André's avatar Jean-Philippe André

Lua: Extensions, fix position of buttons

Fix #3375
parent 11cb728a
......@@ -394,9 +394,9 @@ static int vlclua_dialog_add_button( lua_State *L )
extension_widget_t *p_widget = calloc( 1, sizeof( extension_widget_t ) );
p_widget->type = EXTENSION_WIDGET_BUTTON;
p_widget->psz_text = strdup( luaL_checkstring( L, 2 ) );
lua_settop( L, 3 );
lua_settop( L, 10 );
lua_pushlightuserdata( L, p_widget );
lua_insert( L, 3 );
lua_insert( L, 10 );
lua_settable( L, LUA_REGISTRYINDEX );
p_widget->p_sys = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment