Fix footnote output in description item

Fixes: #9387
This commit is contained in:
Juergen Spitzmueller 2017-11-19 08:59:48 +01:00
parent 3affde3957
commit aaa6150089

View File

@ -1490,6 +1490,16 @@ void Paragraph::Private::validate(LaTeXFeatures & features) const
for (; icit != iend; ++icit) {
if (icit->inset) {
features.inDeletedInset(owner_->isDeleted(icit->pos));
if (icit->inset->lyxCode() == FOOT_CODE) {
// FIXME: an item inset would make things much easier.
if ((layout_->latextype == LATEX_LIST_ENVIRONMENT
|| (layout_->latextype == LATEX_ITEM_ENVIRONMENT
&& layout_->margintype == MARGIN_FIRST_DYNAMIC))
&& (icit->pos < begin_of_body_
|| (icit->pos == begin_of_body_
&& (icit->pos == 0 || text_[icit->pos - 1] != ' '))))
features.saveNoteEnv("description");
}
icit->inset->validate(features);
features.inDeletedInset(false);
if (layout_->needprotect &&