X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flayout.C;h=bad3b274118812ec634e630be50b5cb6c8520857;hb=d5b3b6807a719bdc3510444b307a1d22a94c6876;hp=4fd40f1107958343bae5326f750c61e2b8437445;hpb=e7401bd8f2310213b4b765c01676459f37adb530;p=lyx.git diff --git a/src/layout.C b/src/layout.C index 4fd40f1107..bad3b27411 100644 --- a/src/layout.C +++ b/src/layout.C @@ -30,6 +30,8 @@ using std::pair; using std::make_pair; using std::sort; using std::endl; +using std::find_if; +using std::remove_if; // Global variable: textclass table. LyXTextClassList textclasslist; @@ -871,7 +873,7 @@ bool LyXTextClass::Read(string const & filename, bool merge) error = do_readStyle(lexrc, lay); } else { LyXLayout lay; - lay.name(name); + lay.setName(name); if (!(error = do_readStyle(lexrc, lay))) layoutlist.push_back(lay); }