]> git.lyx.org Git - features.git/blobdiff - src/paragraph.C
Misc. small fixes
[features.git] / src / paragraph.C
index 91b7cad91abbac161cc528eec26b4d7576ec16c6..25357226a4a8b6be6e94c41ebc7372eccf34c0e1 100644 (file)
@@ -381,10 +381,18 @@ void Paragraph::validate(LaTeXFeatures & features) const
        }
 
        // then the insets
+       LyXLayout const & layout =
+                textclasslist.Style(bparams.textclass,
+                                    getLayout());
+
        for (InsetList::const_iterator cit = insetlist.begin();
             cit != insetlist.end(); ++cit) {
-               if (cit->inset)
+               if (cit->inset) {
                        cit->inset->validate(features);
+                       if (layout.needprotect &&
+                           cit->inset->lyxCode() == Inset::FOOT_CODE)
+                               features.NeedLyXFootnoteCode = true;
+               }
        }
 }