* LayoutFile.cpp:

- it makes no sense to output the real filename if it is empty,
- success is already false.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34950 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2010-07-17 21:12:48 +00:00
parent 8e4e050a96
commit dd08dd8d0a

View File

@ -103,10 +103,8 @@ bool LayoutFileList::read()
LYXERR(Debug::TCLASS, "Reading textclasses from `" << real_file << "'.");
if (real_file.empty()) {
LYXERR0("LayoutFileList::Read: unable to find textclass file `"
<< makeDisplayPath(real_file.absFileName(), 1000)
<< "'.");
success = false;
LYXERR0("LayoutFileList::Read: unable to find textclass file "
<< "`textclass.lst'.";
} else if (!lex.setFile(real_file)) {
LYXERR0("LayoutFileList::Read: lyxlex was not able to set file: "
<< real_file << '.');