Remove redundant coordinates for text in SVG output - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/text.cpp
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2012年01月24日 18:20:21 +0100
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年01月30日 21:26:02 +0100
commitcba327706ed34d8c3166a748a3114d5a9ddc10b0 (patch)
tree8f8d0970633d67b7a3b839f047cd47ccc3793187 /agg-plot/text.cpp
parent336b7b2386f8021a3dc569addf2e2876b10d711b (diff)
downloadgsl-shell-cba327706ed34d8c3166a748a3114d5a9ddc10b0.tar.gz
Remove redundant coordinates for text in SVG output
Diffstat (limited to 'agg-plot/text.cpp')
-rw-r--r--agg-plot/text.cpp 4
1 files changed, 2 insertions, 2 deletions
diff --git a/agg-plot/text.cpp b/agg-plot/text.cpp
index df04cd34..b23d2218 100644
--- a/agg-plot/text.cpp
+++ b/agg-plot/text.cpp
@@ -83,10 +83,10 @@ namespace draw {
const char* cont = m_text_buf.cstr();
str txt = str::print("<text x=\"%g\" y=\"%g\" id=\"text%i\"" \
" style=\"font-size:%i%s\">" \
- " <tspan x=\"%g\" y=\"%g\" id=\"tspan%i\">%s</tspan>" \
+ " <tspan id=\"tspan%i\">%s</tspan>" \
"</text>",
x_svg, y_svg, id, txt_size, style.cstr(),
- x_svg, y_svg, id, cont);
+ id, cont);
if (need_rotate) {
s = str::print("<g transform=\"matrix(%g,%g,%g,%g,%g,%g)\">%s</g>",
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月29日 04:02:36 +0000

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