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:
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 4956b359..8290454b 100644
--- a/agg-plot/plot.h
+++ b/agg-plot/plot.h
@@ -636,14 +636,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日 15:48:17 +0000

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