added error message when plotting on closing window - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/window.cpp
diff options
context:
space:
mode:
authorfrancesco-ST <francesco.abbate@st.com>2010年08月27日 09:18:43 +0200
committerfrancesco-ST <francesco.abbate@st.com>2010年08月27日 09:18:43 +0200
commit0b54e9afaaf67a4d687fd5085e77f0121161cd4e (patch)
tree70b2d533d47f9622322f9d7b3578e6f8d3f83cf5 /agg-plot/window.cpp
parenta3767187d1041f4fb0cfc113e085e7cd4bd8400c (diff)
downloadgsl-shell-0b54e9afaaf67a4d687fd5085e77f0121161cd4e.tar.gz
added error message when plotting on closing window
Diffstat (limited to 'agg-plot/window.cpp')
-rw-r--r--agg-plot/window.cpp 7
1 files changed, 6 insertions, 1 deletions
diff --git a/agg-plot/window.cpp b/agg-plot/window.cpp
index c45d3bc8..dbd2a24c 100644
--- a/agg-plot/window.cpp
+++ b/agg-plot/window.cpp
@@ -319,8 +319,13 @@ window_slot_update (lua_State *L)
if (win->status == canvas_window::running)
{
win->draw_slot(slot_id, true);
+ win->unlock();
+ }
+ else
+ {
+ win->unlock();
+ luaL_error (L, "window is not running");
}
- win->unlock();
return 0;
}
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月12日 14:29:47 +0000

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