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 4
1 files changed, 2 insertions, 2 deletions
diff --git a/agg-plot/lua-plot.cpp b/agg-plot/lua-plot.cpp
index 59df3300..e567fe2f 100644
--- a/agg-plot/lua-plot.cpp
+++ b/agg-plot/lua-plot.cpp
@@ -655,8 +655,8 @@ int
plot_set_mini(lua_State *L)
{
sg_plot* p = object_check<sg_plot>(L, 1, GS_PLOT);
- const char* placement = luaL_checkstring(L, 2);
- sg_plot* mp = object_check<sg_plot>(L, 3, GS_PLOT);
+ sg_plot* mp = object_check<sg_plot>(L, 2, GS_PLOT);
+ const char* placement = luaL_optstring(L, 3, "r");
sg_plot::placement_e pos;
char letter = placement[0];
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月15日 07:14:23 +0000

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