Issues a warning if the user tries to add footnotes without a footer.
Page_layout_problem::add_footnotes_to_footer (footnotes, foot, book_);
- p->set_property ("foot-stencil", foot->smobbed_copy ());
+ if (foot)
+ p->set_property ("foot-stencil", foot->smobbed_copy ());
scm_apply_1 (page_stencil, page, SCM_EOL);
return page;
void
Page_layout_problem::add_footnotes_to_footer (SCM footnotes, Stencil *foot, Paper_book *pb)
{
+ if (!foot && scm_is_pair (footnotes))
+ {
+ warning ("Must have a footer to add footnotes.");
+ return;
+ }
bool footnotes_found = false;
Real footnote_padding = robust_scm2double (pb->paper_->c_variable ("footnote-padding"), 0.0);
Real footnote_footer_padding = robust_scm2double (pb->paper_->c_variable ("footnote-footer-padding"), 0.0);