Merge branch 'font-freetype-3' - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/plot.h
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2012年07月29日 11:30:24 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年07月29日 11:30:24 +0200
commitc01b764483109e2ad1090fc53055fec90d7ab21e (patch)
tree28cb2352ac50d79470bda371d9073e15a693c922 /agg-plot/plot.h
parent707e54e3350e458530270d9cbd0767771cf6386f (diff)
parent2c1cbfd564492a0a8b3796a7c6f1c5dfb08dd117 (diff)
downloadgsl-shell-c01b764483109e2ad1090fc53055fec90d7ab21e.tar.gz
Merge branch 'font-freetype-3'
Diffstat (limited to 'agg-plot/plot.h')
-rw-r--r--agg-plot/plot.h 4
1 files changed, 2 insertions, 2 deletions
diff --git a/agg-plot/plot.h b/agg-plot/plot.h
index 174a2829..2b970e6d 100644
--- a/agg-plot/plot.h
+++ b/agg-plot/plot.h
@@ -667,14 +667,14 @@ agg::trans_affine plot<RM>::draw_legends(canvas_type& canvas,
switch (k)
{
case right:
- dx = sx * size_frac_x;
+ dx = max(sx * size_frac_x, bb_dx);
dy = dx * bb_dy / bb_dx;
px = sx - dx - ppad * sx - dxr;
py = (sy - dy) / 2;
dxr += dx + 2 * ppad * sx;
break;
case left:
- dx = sx * size_frac_x;
+ dx = max(sx * size_frac_x, bb_dx);
dy = dx * bb_dy / bb_dx;
px = ppad * sx + dxr;
py = (sy - dy) / 2;
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月13日 19:07:00 +0000

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