X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcairo-fsm.c;h=2df39754343b966b3305c6a7393b17a3c9989625;hb=d55fbbb4fda554d02c93dd46c6fa66128060e6f0;hp=e427a4a5ed8ba9d4c816d9a6f849d116c6bbfdbd;hpb=f5ad0a140f581d9f72e2c498d294af76032b1a9c;p=pspp diff --git a/src/output/cairo-fsm.c b/src/output/cairo-fsm.c index e427a4a5ed..2df3975434 100644 --- a/src/output/cairo-fsm.c +++ b/src/output/cairo-fsm.c @@ -761,13 +761,17 @@ xr_layout_cell_text (struct xr_fsm *xr, const struct table_cell *cell, } size_t footnote_ofs = ds_length (&body); + size_t n_footnotes = 0; for (size_t i = 0; i < value->n_footnotes; i++) { - if (i) - ds_put_byte (&body, ','); - - size_t idx = value->footnote_indexes[i]; - pivot_footnote_format_marker (pt->footnotes[idx], pt, &body); + const struct pivot_footnote *f + = pt->footnotes[value->footnote_indexes[i]]; + if (f->show) + { + if (n_footnotes++) + ds_put_byte (&body, ','); + pivot_footnote_format_marker (f, pt, &body); + } } /* Allow footnote markers to occupy the right margin. That way, numbers