X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcairo-pager.c;h=e87ec325248f2cff94d2fbdd2c57d7d1febc6a07;hb=afe3c5f8563dba738b2144ae0679834f4c366048;hp=1ab481f0c3930f1108171a478fa1120592ec04a7;hpb=ce219cff17ff1ed06eb9be84a220d870a1a80e80;p=pspp diff --git a/src/output/cairo-pager.c b/src/output/cairo-pager.c index 1ab481f0c3..e87ec32524 100644 --- a/src/output/cairo-pager.c +++ b/src/output/cairo-pager.c @@ -451,27 +451,8 @@ xr_pager_run (struct xr_pager *p) } p->n_opens = 0; - const char *text; - if (is_table_item (p->item)) - { - const struct table_item_text *title - = table_item_get_title (to_table_item (p->item)); - text = title ? title->content : "Table"; - } - else if (is_chart_item (p->item)) - { - const char *title - = chart_item_get_title (to_chart_item (p->item)); - text = title ? title : "Chart"; - } - else - text = (is_page_eject_item (p->item) ? "Page Break" - : is_page_setup_item (p->item) ? "Page Setup" - : is_message_item (p->item) ? "Message" - : is_text_item (p->item) ? "Text" - : NULL); - if (text) - add_outline (p->cr, parent_group_id, text, attrs, 0); + add_outline (p->cr, parent_group_id, + output_item_get_label (p->item), attrs, 0); free (attrs); } free (dest_name);