string const classname = lex.getString();
// if there exists a local layout file, ignore the system one
// NOTE: in this case, the textclass (.cls file) is assumed to be available.
- pair<bool, lyx::textclass_type> pp = textclasslist.addTextClass(
- classname, filepath.absFilename());
+ pair<bool, lyx::textclass_type> pp;
+ if (!filepath.empty())
+ pp = textclasslist.addTextClass(
+ classname, filepath.absFilename());
if (pp.first)
setBaseClass(pp.second);
else {