]> git.lyx.org Git - lyx.git/blobdiff - src/TextClass.cpp
use return value of regex_match to check whether a match was found
[lyx.git] / src / TextClass.cpp
index 1d1b3f6aaf042d3cb89b71701d7bdcc81048a959..edf66b3b34048dc5e36d21d049a99d7061f0dd4c 100644 (file)
@@ -979,6 +979,7 @@ bool TextClass::readFloat(Lexer & lexrc)
                                name = fl.name();
                                listname = fl.listName();
                                usesfloat = fl.usesFloatPkg();
+                               ispredefined = fl.isPredefined();
                                listcommand = fl.listCommand();
                                refprefix = fl.refPrefix();
                        } 
@@ -1226,7 +1227,6 @@ InsetLayout const & DocumentClass::insetLayout(docstring const & name) const
 
 docstring const & TextClass::defaultLayoutName() const
 {
-       // This really should come from the actual layout... (Lgb)
        return defaultlayout_;
 }