Crash fix.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22398 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2008-01-06 16:52:00 +00:00
parent 8f1153820a
commit 012c7f3280

View File

@ -1713,6 +1713,8 @@ vector<string> GuiDocument::getPackageList(string const & modName) const
bool GuiDocument::isModuleAvailable(string const & modName) const
{
LyXModule * mod = moduleList[modName];
if (!mod)
return false;
return mod->isAvailable();
}