From: Jürgen Spitzmüller Date: Sun, 2 Dec 2007 17:59:53 +0000 (+0000) Subject: * src/BufferParams.cpp (readToken): X-Git-Tag: 1.6.10~7077 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=433eda2ccafb0ae545c493246642fa3bd56b3dfa;p=features.git * 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 --- diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index 44573db167..f13fb287bc 100644 --- a/src/BufferParams.cpp +++ b/src/BufferParams.cpp @@ -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 pp = textclasslist.addTextClass( - classname, filepath.absFilename()); + pair pp; + if (!filepath.empty()) + pp = textclasslist.addTextClass( + classname, filepath.absFilename()); if (pp.first) setBaseClass(pp.second); else {