author | francesco-ST <francesco.abbate@st.com> | 2011年02月08日 15:27:31 +0100 |
---|---|---|
committer | francesco-ST <francesco.abbate@st.com> | 2011年02月08日 15:27:31 +0100 |
commit | 9d86e8b8456d8aefff97983240953bc2af9bdb8d (patch) | |
tree | 796085bbe1766f10b638b8b62e832f7f0f73b33f /agg-plot/lua-text.cpp | |
parent | 4226638486e6e8357c8b94387a213d62dd12cba4 (diff) | |
download | gsl-shell-9d86e8b8456d8aefff97983240953bc2af9bdb8d.tar.gz |
-rw-r--r-- | agg-plot/lua-text.cpp | 4 |
diff --git a/agg-plot/lua-text.cpp b/agg-plot/lua-text.cpp index e1c770b0..1efcbbe3 100644 --- a/agg-plot/lua-text.cpp +++ b/agg-plot/lua-text.cpp @@ -133,7 +133,7 @@ agg_text_justif_set (lua_State *L) hjf = 1.0; break; default: - luaL_error (L, "invalid text justification"); + return luaL_error (L, "invalid text justification"); } t->hjustif(hjf); @@ -155,7 +155,7 @@ agg_text_justif_set (lua_State *L) vjf = 1.0; break; default: - luaL_error (L, "invalid text justification"); + return luaL_error (L, "invalid text justification"); } t->vjustif(vjf); |