X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcairo.c;h=cfa9669329e0edf7990e166c304cadacc3898fda;hb=98db17130ea7872c01015bebe5f135e6b30ad1ad;hp=8156016cd415bd33fe97ed4176ed91e3d6299aab;hpb=bc9098242e54d481b2c5e2cef970568ab5e953cb;p=pspp-builds.git diff --git a/src/output/cairo.c b/src/output/cairo.c index 8156016c..cfa96693 100644 --- a/src/output/cairo.c +++ b/src/output/cairo.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -982,7 +982,8 @@ xr_rendering_create_text (struct xr_driver *xr, const char *text, cairo_t *cr) void xr_rendering_apply_options (struct xr_rendering *xr, struct string_map *o) { - apply_options (xr->xr, o); + if (is_table_item (xr->item)) + apply_options (xr->xr, o); } struct xr_rendering * @@ -1015,8 +1016,6 @@ 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;