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>2011年12月06日 22:26:34 +0100
committerFrancesco Abbate <francesco.bbt@gmail.com>2011年12月06日 22:26:34 +0100
commit66988c8e83094758e55282c51f45a01933bcc0c9 (patch)
tree4a90ebd78fe31080e719c23c7f371bff9597d1f0 /agg-plot/lua-text.cpp
parentc9a356e30fcd55e51bdfc303ce47921b09fab2b4 (diff)
downloadgsl-shell-66988c8e83094758e55282c51f45a01933bcc0c9.tar.gz
Add support to write plot objects in SVG format
Diffstat (limited to 'agg-plot/lua-text.cpp')
-rw-r--r--agg-plot/lua-text.cpp 2
1 files changed, 1 insertions, 1 deletions
diff --git a/agg-plot/lua-text.cpp b/agg-plot/lua-text.cpp
index 065211a7..91a606bc 100644
--- a/agg-plot/lua-text.cpp
+++ b/agg-plot/lua-text.cpp
@@ -66,7 +66,7 @@ int
agg_text_new (lua_State *L)
{
double size = luaL_optnumber (L, 1, 10.0);
- double width = luaL_optnumber (L, 2, 1.0);
+ double width = luaL_optnumber (L, 2, 1.0) + 0.7;
new(L, GS_DRAW_TEXT) draw::text(size, width);
return 1;
}
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月16日 10:41:44 +0000

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