fixed bug related to text bounding rect calculation - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
diff options
context:
space:
mode:
authorfrancesco <francesco.bbt@gmail.com>2010年10月24日 00:56:10 +0200
committerfrancesco <francesco.bbt@gmail.com>2010年10月24日 00:56:10 +0200
commitb3f1247acef37c6c8894788e2055ebd59228c0d2 (patch)
treec32269a3c678027239a05a32185cdcc07f6a84ab
parente1d06a81b148252b25fea22c47e29abc95e86ea4 (diff)
downloadgsl-shell-b3f1247acef37c6c8894788e2055ebd59228c0d2.tar.gz
fixed bug related to text bounding rect calculation
Diffstat
-rw-r--r--agg-plot/agg_platform_support_x11.cpp 1
-rw-r--r--agg-plot/text.cpp 2
2 files changed, 2 insertions, 1 deletions
diff --git a/agg-plot/agg_platform_support_x11.cpp b/agg-plot/agg_platform_support_x11.cpp
index 3bb80d51..79dcc498 100644
--- a/agg-plot/agg_platform_support_x11.cpp
+++ b/agg-plot/agg_platform_support_x11.cpp
@@ -616,6 +616,7 @@ namespace agg
XFreeGC(m_specific->m_display, m_specific->m_gc);
XDestroyWindow(m_specific->m_display, m_specific->m_window);
XCloseDisplay(m_specific->m_display);
+ XCloseDisplay(m_specific->m_display_alt);
return false;
}
diff --git a/agg-plot/text.cpp b/agg-plot/text.cpp
index a13e2126..b1935d1b 100644
--- a/agg-plot/text.cpp
+++ b/agg-plot/text.cpp
@@ -6,6 +6,7 @@ namespace draw {
void
text::rewind(unsigned path_id)
{
+ m_text.start_point (-m_hjustif * m_text_width, -m_vjustif * m_text_height);
m_stroke.rewind(path_id);
}
@@ -27,7 +28,6 @@ namespace draw {
m.transform(&x, &y);
m_stroke.approximation_scale(as);
- m_text.start_point (-m_hjustif * m_text_width, -m_vjustif * m_text_height);
}
void
generated by cgit v1.2.3 (git 2.46.0) at 2025年10月05日 16:30:04 +0000

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