author | francesco-ST <francesco.abbate@st.com> | 2010年07月15日 12:57:00 +0200 |
---|---|---|
committer | francesco-ST <francesco.abbate@st.com> | 2010年07月15日 12:57:00 +0200 |
commit | f93eaab58d78528b56710dbdbcf0b0232d1f46ad (patch) | |
tree | 0f95ddfbd626276432e5951b2403b1f220b9669f /agg-plot/plot-window.cpp | |
parent | daf0b9bafe32ec66a132bf6f6faabb821512c4b1 (diff) | |
download | gsl-shell-f93eaab58d78528b56710dbdbcf0b0232d1f46ad.tar.gz |
-rw-r--r-- | agg-plot/plot-window.cpp | 2 |
diff --git a/agg-plot/plot-window.cpp b/agg-plot/plot-window.cpp index 8d747046..70fec188 100644 --- a/agg-plot/plot-window.cpp +++ b/agg-plot/plot-window.cpp @@ -195,7 +195,7 @@ plot_window_new (lua_State *L) plot_window *win = new(L, GS_AGG_WINDOW) plot_window(color); - win->id = mlua_window_ref(L, 1); + win->id = mlua_window_ref(L, lua_gettop (L)); pthread_attr_t attr[1]; pthread_t win_thread[1]; |