author | Francesco Abbate <francesco.bbt@gmail.com> | 2012年06月27日 17:45:49 +0200 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2012年06月27日 17:45:49 +0200 |
commit | 1b2fab01c5b721e793a27dd5f5e67eab65a4fd78 (patch) | |
tree | 475b9aaa3cd1693c0a83bf965e039c214274ab6b /agg-plot/lua-text.cpp | |
parent | f31d5249020fd59ae6f997c870efa9baac05ca05 (diff) | |
download | gsl-shell-1b2fab01c5b721e793a27dd5f5e67eab65a4fd78.tar.gz |
-rw-r--r-- | agg-plot/lua-text.cpp | 52 |
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); } |