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-text.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-text.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-text.cpp')
-rw-r--r--agg-plot/lua-text.cpp 52
1 files changed, 26 insertions, 26 deletions
diff --git a/agg-plot/lua-text.cpp b/agg-plot/lua-text.cpp
index cb5dd7c4..3558addb 100644
--- a/agg-plot/lua-text.cpp
+++ b/agg-plot/lua-text.cpp
@@ -120,19 +120,19 @@ agg_text_justif_set (lua_State *L)
char ch = justif[0];
double hjf;
switch (ch)
- {
- case 'l':
- hjf = 0.0;
- break;
- case 'c':
- hjf = 0.5;
- break;
- case 'r':
- hjf = 1.0;
- break;
- default:
- return luaL_error (L, "invalid text justification");
- }
+ {
+ case 'l':
+ hjf = 0.0;
+ break;
+ case 'c':
+ hjf = 0.5;
+ break;
+ case 'r':
+ hjf = 1.0;
+ break;
+ default:
+ return luaL_error (L, "invalid text justification");
+ }
t->hjustif(hjf);
}
@@ -142,19 +142,19 @@ agg_text_justif_set (lua_State *L)
char ch = justif[1];
double vjf;
switch (ch)
- {
- case 'b':
- vjf = 0.0;
- break;
- case 'c':
- vjf = 0.5;
- break;
- case 't':
- vjf = 1.0;
- break;
- default:
- return luaL_error (L, "invalid text justification");
- }
+ {
+ case 'b':
+ vjf = 0.0;
+ break;
+ case 'c':
+ vjf = 0.5;
+ break;
+ case 't':
+ vjf = 1.0;
+ break;
+ default:
+ return luaL_error (L, "invalid text justification");
+ }
t->vjustif(vjf);
}
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月14日 14:27:23 +0000

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