]> git.lyx.org Git - lyx.git/blobdiff - src/ModuleList.cpp
InsetInfo: enable inset dissolve
[lyx.git] / src / ModuleList.cpp
index d442d204a559cde98c0e15dec3b70f1063a1143e..51a942776610d4cd131db854deb3f886b0b267d9 100644 (file)
@@ -40,7 +40,7 @@ LyXModule::LyXModule(string const & n, string const & i,
                           string const & c):
        name_(n), id_(i), description_(d), package_list_(p),
        required_modules_(r), excluded_modules_(e), category_(c),
-       checked_(false)
+       checked_(false), available_(false)
 {
        filename_ = id_ + ".module";
 }
@@ -264,10 +264,10 @@ LyXModule * ModuleList::operator[](string const & str)
        LyXModuleList::iterator it = modlist_.begin();
        for (; it != modlist_.end(); ++it)
                if (it->getID() == str) {
-               LyXModule & mod = *it;
-               return &mod;
+                       LyXModule & mod = *it;
+                       return &mod;
                }
-               return 0;
+       return 0;
 }
 
 } // namespace lyx