X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcairo.c;fp=src%2Foutput%2Fcairo.c;h=3e8c256f8193f31e4ffc71b513c7e034b4b28556;hb=bf3af6fb69dc94a6b3010e11e5d359e9e4abd5ba;hp=22e060cf936d33bd915a235e5a563be139312f8d;hpb=d2ee46757c7602fb0d6827136fdb00af1140e2e1;p=pspp diff --git a/src/output/cairo.c b/src/output/cairo.c index 22e060cf93..3e8c256f81 100644 --- a/src/output/cairo.c +++ b/src/output/cairo.c @@ -565,8 +565,7 @@ xr_render_table_item (struct xr_driver *xr, const struct table_item *item, else *caption_heightp = 0; - return render_pager_create (render_page_create (xr->params, - table_item_get_table (item))); + return render_pager_create (xr->params, item); } static void @@ -1045,7 +1044,6 @@ xr_layout_cell_subtable (struct xr_driver *xr, int bb[TABLE_N_AXES][2], int clip[TABLE_N_AXES][2], int *widthp, int *brk) { - const struct table *table = contents->table; int single_width, double_width; struct render_params params; struct render_pager *p; @@ -1074,7 +1072,7 @@ xr_layout_cell_subtable (struct xr_driver *xr, } xr->nest++; - p = render_pager_create (render_page_create (¶ms, table)); + p = render_pager_create (¶ms, contents->table); width = render_pager_get_size (p, H); height = render_pager_get_size (p, V); if (bb[V][0] + height >= bb[V][1])