projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
render: Render table_items instead of tables.
[pspp]
/
src
/
output
/
cairo.c
diff --git
a/src/output/cairo.c
b/src/output/cairo.c
index 22e060cf936d33bd915a235e5a563be139312f8d..3e8c256f8193f31e4ffc71b513c7e034b4b28556 100644
(file)
--- 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;
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
}
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)
{
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;
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++;
}
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])
width = render_pager_get_size (p, H);
height = render_pager_get_size (p, V);
if (bb[V][0] + height >= bb[V][1])