From ee7b576822f2fa5025e08eccf5c8e7728838c460 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Thu, 5 Jan 2012 20:11:54 +0100 Subject: [PATCH] Avoid crash rendering charts in the gui interface. Reported-by: Nick Macdonald Provisionally Reviewed-by: Ben Pfaff --- src/output/cairo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/output/cairo.c b/src/output/cairo.c index 1de46b25..8156016c 100644 --- a/src/output/cairo.c +++ b/src/output/cairo.c @@ -1015,6 +1015,8 @@ xr_rendering_create (struct xr_driver *xr, const struct output_item *item, { r = xzalloc (sizeof *r); r->item = output_item_ref (item); + r->xr = xr; + xr_set_cairo (xr, cr); } return r; -- 2.30.2