Avoid crash rendering charts in the gui interface.
authorJohn Darrington <john@darrington.wattle.id.au>
Thu, 5 Jan 2012 19:11:54 +0000 (20:11 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Thu, 5 Jan 2012 19:11:54 +0000 (20:11 +0100)
Reported-by: Nick Macdonald <nick@nickmacdonald.net>
Provisionally Reviewed-by: Ben Pfaff <blp@gnu.org>

src/output/cairo.c

index 1de46b25bbe9ce7f7fbe3ee92ea3aae6563bb8ee..8156016cd415bd33fe97ed4176ed91e3d6299aab 100644 (file)
@@ -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;