Removes all Tab characters into agg-plot to use only spaces - 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年06月27日 17:45:49 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年06月27日 17:45:49 +0200
commit1b2fab01c5b721e793a27dd5f5e67eab65a4fd78 (patch)
tree475b9aaa3cd1693c0a83bf965e039c214274ab6b /agg-plot/lua-plot.cpp
parentf31d5249020fd59ae6f997c870efa9baac05ca05 (diff)
downloadgsl-shell-1b2fab01c5b721e793a27dd5f5e67eab65a4fd78.tar.gz
Removes all Tab characters into agg-plot to use only spaces
Diffstat (limited to 'agg-plot/lua-plot.cpp')
-rw-r--r--agg-plot/lua-plot.cpp 40
1 files changed, 20 insertions, 20 deletions
diff --git a/agg-plot/lua-plot.cpp b/agg-plot/lua-plot.cpp
index 336d1bbd..8a6f186a 100644
--- a/agg-plot/lua-plot.cpp
+++ b/agg-plot/lua-plot.cpp
@@ -154,7 +154,7 @@ plot_new (lua_State *L)
{
const char *title = lua_tostring (L, 1);
if (title)
- p->title() = title;
+ p->title() = title;
}
return 1;
@@ -174,7 +174,7 @@ canvas_new (lua_State *L)
{
const char *title = lua_tostring (L, 1);
if (title)
- p->title() = title;
+ p->title() = title;
}
return 1;
@@ -188,7 +188,7 @@ plot_free (lua_State *L)
void
plot_add_gener_cpp (lua_State *L, sg_plot* p, bool as_line,
- gslshell::ret_status& st)
+ gslshell::ret_status& st)
{
agg::rgba8 color;
int layer_index = p->current_layer_index();
@@ -430,8 +430,8 @@ int
plot_index (lua_State *L)
{
return mlua_index_with_properties (L,
- plot_properties_get,
- plot_methods, false);
+ plot_properties_get,
+ plot_methods, false);
}
int
@@ -645,26 +645,26 @@ plot_set_categories (lua_State *L)
int k, n;
if (!lua_istable(L, 3))
- {
- AGG_UNLOCK();
- return luaL_error(L, "invalid categories, should be a table or nil");
- }
+ {
+ AGG_UNLOCK();
+ return luaL_error(L, "invalid categories, should be a table or nil");
+ }
p->enable_categories(dir);
n = lua_objlen(L, 3);
for (k = 1; k+1 <= n; k += 2)
- {
- lua_rawgeti(L, 3, k);
- lua_rawgeti(L, 3, k+1);
- if (lua_isnumber(L, -2) && lua_isstring(L, -1))
- {
- double v = lua_tonumber(L, -2);
- const char* s = lua_tostring(L, -1);
- p->add_category_entry(dir, v, s);
- }
- lua_pop(L, 2);
- }
+ {
+ lua_rawgeti(L, 3, k);
+ lua_rawgeti(L, 3, k+1);
+ if (lua_isnumber(L, -2) && lua_isstring(L, -1))
+ {
+ double v = lua_tonumber(L, -2);
+ const char* s = lua_tostring(L, -1);
+ p->add_category_entry(dir, v, s);
+ }
+ lua_pop(L, 2);
+ }
}
AGG_UNLOCK();
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月12日 06:36:05 +0000

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