From: John Darrington Date: Thu, 5 Jan 2012 19:11:54 +0000 (+0100) Subject: Avoid crash rendering charts in the gui interface. X-Git-Tag: v0.7.9~44 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee7b576822f2fa5025e08eccf5c8e7728838c460;p=pspp-builds.git Avoid crash rendering charts in the gui interface. Reported-by: Nick Macdonald Provisionally Reviewed-by: Ben Pfaff --- 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;