X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxtextclasslist.C;h=6050c266cba0e2ed98b5a98b7bba41c8178feb0c;hb=98c966c64594611e469313314abd1e59524adb4a;hp=79f0c3b117f0cb2d332fee8370e2eb0b3a53037e;hpb=dbd7a961fc46bb10c85bdd8c7fb6626477ae63d8;p=lyx.git diff --git a/src/lyxtextclasslist.C b/src/lyxtextclasslist.C index 79f0c3b117..6050c266cb 100644 --- a/src/lyxtextclasslist.C +++ b/src/lyxtextclasslist.C @@ -1,8 +1,8 @@ /* This file is part of - * ====================================================== - * + * ====================================================== + * * LyX, The Document Processor - * + * * Copyright 1995 Matthias Ettrich * Copyright 1995-2001 The LyX Team. * @@ -106,13 +106,13 @@ bool LyXTextClassList::Read () "lyxlex was not able to set file: " << real_file << endl; } - + if (!lex.isOK()) { lyxerr << "LyXTextClassList::Read: unable to open " "textclass file `" << MakeDisplayPath(real_file, 1000) << "'\nCheck your installation. LyX can't continue." << endl; - return false; + return false; } bool finished = false; @@ -172,7 +172,7 @@ LyXTextClassList textclasslist; void LyXSetStyle() { lyxerr[Debug::TCLASS] << "LyXSetStyle: parsing configuration...\n"; - + if (!textclasslist.Read()) { lyxerr[Debug::TCLASS] << "LyXSetStyle: an error occured " "during parsing.\n Exiting." << endl;