Ensure plot's window is redrawn on attach calls - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2012年08月26日 17:32:22 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年08月26日 17:32:22 +0200
commitf4cd2cc630cee17cf5283005897ffc96e91df0b1 (patch)
treea1472d78aaaf9ec0ce15888182933c92bdb5f983
parentdf7bd02dfe1bdc3209aeed2a98408f392af7a557 (diff)
downloadgsl-shell-f4cd2cc630cee17cf5283005897ffc96e91df0b1.tar.gz
Ensure plot's window is redrawn on attach calls
Diffstat
-rw-r--r--fox-gui/lua_plot_window.cpp 7
1 files changed, 6 insertions, 1 deletions
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);
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月18日 20:55:58 +0000

AltStyle によって変換されたページ (->オリジナル) /