mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
* 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:
parent
c68601da9f
commit
433eda2cca
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user