-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); |