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:
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.25.1) at 2025年09月17日 04:23:03 +0000

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