author | Francesco Abbate <francesco.bbt@gmail.com> | 2012年08月26日 17:32:22 +0200 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2012年08月26日 17:32:22 +0200 |
commit | f4cd2cc630cee17cf5283005897ffc96e91df0b1 (patch) | |
tree | a1472d78aaaf9ec0ce15888182933c92bdb5f983 | |
parent | df7bd02dfe1bdc3209aeed2a98408f392af7a557 (diff) | |
download | gsl-shell-f4cd2cc630cee17cf5283005897ffc96e91df0b1.tar.gz |
-rw-r--r-- | fox-gui/lua_plot_window.cpp | 7 |
diff --git a/fox-gui/lua_plot_window.cpp b/fox-gui/lua_plot_window.cpp index 64f1e216..1381f18c 100644 --- a/fox-gui/lua_plot_window.cpp +++ b/fox-gui/lua_plot_window.cpp @@ -102,7 +102,12 @@ fox_window_attach (lua_State *L) fx_plot_window* win = lwin->window; gsl_shell_app* app = lwin->app; sg_plot* p = object_check<sg_plot>(L, 2, GS_PLOT); - win->canvas()->attach(p); + + fx_plot_canvas* canvas = win->canvas(); + canvas->attach(p); + agg::trans_affine& m = canvas->plot_matrix(); + canvas->plot_draw(m); + app->unlock(); int slot_id = 1; window_refs_add (L, slot_id, 1, 2); |