Change the argument order for set_mini plot method - 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:
authorFrancesco Abbate <francesco.bbt@gmail.com>2012年02月03日 22:17:05 +0100
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年02月03日 22:17:05 +0100
commit0cef6f09b5b40ed67f247095ec22460a8ace73ac (patch)
tree1a59ceeff1aa186229a16aa04bc0484b9cba34df /agg-plot/lua-plot.cpp
parentaa836bb1956eabc3e2d9de85df1ba93e72a76e13 (diff)
downloadgsl-shell-0cef6f09b5b40ed67f247095ec22460a8ace73ac.tar.gz
Change the argument order for set_mini plot method
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月14日 11:45:54 +0000

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