]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/Preamble.cpp
Remove wmf2eps as EMF > EPS converter
[lyx.git] / src / tex2lyx / Preamble.cpp
index b383793cf0a931eb812bc8bc15e4ed04eccf9f87..ea315dd156677da80c165acdce4cbe8e97c5fed9 100644 (file)
@@ -2018,7 +2018,7 @@ void Preamble::parse(Parser & p, string const & forceclass,
        if (!forceclass.empty())
                h_textclass = forceclass;
        tc.setName(h_textclass);
-       if (!tc.load()) {
+       if (!LayoutFileList::get().haveClass(h_textclass) || !tc.load()) {
                cerr << "Error: Could not read layout file for textclass \"" << h_textclass << "\"." << endl;
                exit(EXIT_FAILURE);
        }