]> git.lyx.org Git - features.git/commitdiff
revert erroneous commit
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 28 Jan 2008 11:42:54 +0000 (11:42 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 28 Jan 2008 11:42:54 +0000 (11:42 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22696 a592a061-630c-0410-9148-cb99ea01b6c8

src/Paragraph.cpp

index 19a99cfe09683ad1d42bdb094bbb73bdf9e2a951..c7e33b1db23642ef741d2817b4a43fb1211ef8e0 100644 (file)
@@ -991,6 +991,13 @@ void Paragraph::Private::validate(LaTeXFeatures & features,
 
        // then the layouts
        features.useLayout(layout.name());
+       if (!layout.requires().empty()) {
+               vector<string> req = layout.requires();
+               for (vector<string>::const_iterator it = req.begin();
+                    it != req.end(); ++it) {
+                       features.require(*it);
+               }
+       }
 
        // then the fonts
        fontlist_.validate(features);