From d5a566a2900f69ab51c7dae78cd7810a4204589a Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 9 Sep 2017 20:44:44 +0200 Subject: [PATCH] src/output/cairo.c (xr_chart_renderer): Set the chart size to 0.8 of the smallest page dimension --- src/output/cairo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/cairo.c b/src/output/cairo.c index 8cb504d2dd..ef0b593233 100644 --- a/src/output/cairo.c +++ b/src/output/cairo.c @@ -1542,7 +1542,7 @@ xr_chart_render (struct xr_render_fsm *fsm, struct xr_driver *xr) { struct xr_chart_state *cs = UP_CAST (fsm, struct xr_chart_state, fsm); - const int chart_height = xr->length; + const int chart_height = 0.8 * (xr->length < xr->width ? xr->length : xr->width); if (xr->y > xr->length - chart_height) return true; -- 2.30.2