]> git.lyx.org Git - lyx.git/blobdiff - src/ModuleList.cpp
Fix compilation on win
[lyx.git] / src / ModuleList.cpp
index 247ebb5abd4152e3c642614e50dba8c74dfebfc7..4127c4d39c27390806b7d0d66ce351f4a1c70531 100644 (file)
@@ -45,6 +45,9 @@ LyXModule::LyXModule(string const & n, string const & i,
 
 
 bool LyXModule::isAvailable() {
+#ifdef TEX2LYX
+       return true;
+#else
        if (packageList.empty())
                return true;
        if (checked)
@@ -61,6 +64,7 @@ bool LyXModule::isAvailable() {
        }
        available = true;
        return available;
+#endif
 }
 
 
@@ -108,7 +112,7 @@ public:
 
 
 //Much of this is borrowed from LayoutFileList::read()
-bool ModuleList::load()
+bool ModuleList::read()
 {
        FileName const real_file = libFileSearch("", "lyxmodules.lst");
        LYXERR(Debug::TCLASS, "Reading modules from `" << real_file << '\'');
@@ -150,7 +154,7 @@ bool ModuleList::load()
                                break;
                        string const fname = lex.getString();
                        LYXERR(Debug::TCLASS, "Filename: " << fname);
-                       if (!lex.next())
+                       if (!lex.next(true))
                                break;
                        string const desc = lex.getString();
                        LYXERR(Debug::TCLASS, "Description: " << desc);