gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/lua-plot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'agg-plot/lua-plot.cpp')
-rw-r--r--agg-plot/lua-plot.cpp 6
1 files changed, 4 insertions, 2 deletions
diff --git a/agg-plot/lua-plot.cpp b/agg-plot/lua-plot.cpp
index 5f780f88..ae046e38 100644
--- a/agg-plot/lua-plot.cpp
+++ b/agg-plot/lua-plot.cpp
@@ -25,7 +25,7 @@ extern "C" {
#include "lua-plot.h"
#include "lua-plot-cpp.h"
-#include "window-refs.h"
+#include "object-index.h"
#include "window.h"
#include "gs-types.h"
#include "lua-utils.h"
@@ -94,7 +94,7 @@ lua_plot::check(lua_State *L, int index)
void
lua_plot::update_window(lua_State *L)
{
- window_ref_get (L, this->id);
+ object_index_get (L, OBJECT_WINDOW, this->window_id);
if (gs_is_userdata (L, lua_gettop (L), GS_WINDOW))
{
@@ -120,6 +120,8 @@ plot_new (lua_State *L)
p->self().set_title(title);
}
+ p->id = object_index_add (L, OBJECT_PLOT, -1);
+
return 1;
}
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月15日 11:01:20 +0000

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