Fix missing round for text's y coordinate in set_point - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2012年08月07日 21:30:46 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年08月07日 21:30:46 +0200
commitb1ced8325ff73de83a7f0113ff3b7c448092df6b (patch)
treec18a13851bbdbed17cbcaf36e8e7ec3516eb0f74
parent99eaf6959abbf91f66743b5551d418cd34a404e8 (diff)
downloadgsl-shell-b1ced8325ff73de83a7f0113ff3b7c448092df6b.tar.gz
Fix missing round for text's y coordinate in set_point
Diffstat
-rw-r--r--agg-plot/text.h 2
1 files changed, 1 insertions, 1 deletions
diff --git a/agg-plot/text.h b/agg-plot/text.h
index c6c62e6e..da88a9c6 100644
--- a/agg-plot/text.h
+++ b/agg-plot/text.h
@@ -62,7 +62,7 @@ class text : public sg_object
m_y = y;
m_matrix.tx = m_x;
- m_matrix.ty = m_y;
+ m_matrix.ty = round(m_y);
}
void hjustif(double hj) { m_hjustif = hj; }
generated by cgit v1.2.3 (git 2.39.1) at 2025年10月02日 14:10:53 +0000

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