* src/BufferParams.cpp (readToken):

- fix assertion introduced with rev. 21800 (bug 4395).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21925 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2007-12-02 17:59:53 +00:00
parent c68601da9f
commit 433eda2cca

View File

@ -474,8 +474,10 @@ string const BufferParams::readToken(Lexer & lex, string const & token,
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 {