- table_add_footnote (t, x1, y1, footnotes[value->footnotes[i]->idx]);
+ {
+ struct footnote *f = footnotes[value->footnotes[i]->idx];
+ if (f)
+ table_add_footnote (t, x1, y1, f);
+ }
+
+ if (value->n_subscripts)
+ table_add_subscripts (t, x1, y1,
+ value->subscripts, value->n_subscripts);